Skip to main content

Money, quantities and dates: business rules

For: product and BA. The rules the app now follows for money, quantities, round off and dates, and what each one means for a shop.

Status, 2026-11-10: not released. Phase 1 (display) is on dev; the rest is on branch aj-display-formats.

Money and figures on screen

  • Figures follow the business, not the browser. Locale comes from the tax country: India shows 1,00,000.00, Malaysia and Singapore show 100,000.00.
  • The currency symbol comes from the currency: ₹ for INR, RM for MYR. A letter symbol gets a space: RM 500.00.
  • Rounding is half-up everywhere: 2.345 becomes 2.35, the same on screen, in the server and in print.
  • The screen's totals are a preview. The server's figures are the ones saved and printed.

Currency decimals

  • The default comes from the currency: INR, MYR and SGD use 2.
  • Only 0, 2 or 3 are allowed. 1 and 4 are refused, because no currency uses them.

Quantities and units

  • Each unit says how many decimals a quantity can have, from 0 to 4.
  • Counted units (Pcs, Box, Bag, Bottle, Bundle, Tin, Packet) take whole numbers only. Measured units (Kg, L, M) take 3.
  • The change is strict: a counted unit gets 0 even if old bills hold 1.5 of it. An old bill can still be edited, as long as that line's product and quantity are not changed.
  • The server refuses a quantity with more decimals than its unit allows, on every document that moves stock. Debit notes are not checked, because they carry the invoice's quantities.
  • Stock is now kept exactly: 0.1 + 0.2 is 0.3, never 0.30000000000000004. A batch sold down to zero is exactly zero.

Round off

Setting What happens
No round off Totals are exact
To the nearest 1 Every posted sale and purchase bill is rounded to the nearest 1
To the nearest 0.05, cash bills only Only a bill paid wholly in cash is rounded, to the nearest 0.05. Card, UPI, credit and mixed bills stay exact
  • Default: the 0.05 cash rule for MYR (Malaysia has no 1 and 2 sen coins); no round off for others.
  • Quotations and orders are never rounded. Returns follow the same rule. A return linked to a sale or bill is set off against it first, so it stays exact.
  • A purchase bill has an editable round off box, filled from the rule, at most 1 either way, to match the supplier's bill.
  • Changing the setting never changes old bills.
  • The amount is posted to a Round Off account, so the books balance. It prints as a "Round off" line on A4 and thermal bills when it is not zero.

Dates and time

  • A business day (sale date, bill date, payment date, expense date) is a plain date. It does not change with time zones.
  • A moment (when a record was created or changed, a register opened, goods received) is stored as an exact point in time and shown in the business time zone.
  • The time printed on a receipt is when the sale was entered.
  • One business time zone per business for now. Separate zones per branch or per user can come when a business has branches in two time zones.

Not covered yet

  • E-invoice (India) and MyInvois (Malaysia) round-off and date fields: there is no e-invoice feature yet.