Dinar POS · reference

Fiscal rules

Every row of the spec is an assumption until a comptable or a stamped facture confirms it. What the code enforces today, and what still waits on an answer.

RuleWhat the code doesState
TVA roundingonce per rate group on the group's HT subtotal, half away from zero, rates at most 10 000 bpscomptable
Discount spreadproportional to HT, floored, leftover to the largest HT, ties to the lower ratecomptable Q7
Droit de timbrecash only, zero at or under 300 DA, ceil per 100 DA at 1 / 1,5 / 2 DA by band, minimum 5 DA, base total TTCcomptable
Amount in wordscomputed on net_to_pay; décret 05-468 says the TTC totalcomptable Q8
Arabic wordinghand-written generator, 01/02 group pattern first to checknative review
Cancelled facturekeeps its number; the décret only requires the diagonal mentioncomptable Q4
Régime IFUdated setting read by the core; no TVA line on documentspinned, fixture in M1
Money storageSTRICT tables, CHECK on every centimes and rate column, 2^53 bound at the APIenforced