Receipt amount and discount rules: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 August 2024

20 February 2023

  • curprev 11:3411:34, 20 February 2023David Ashton talk contribs 1,631 bytes +1,631 Created page with "This is how the register calculates amounts: There are two functions, applyAmountRule(amount) and applyDiscountAmountRule(discountAmount). The amount rule function does this: Convert the amount to pennies by multiplying by 100.0 If the fractional part is less than 0.001 then take the floor amount else take the ceiling amount. This amount is multiplied by 0.01 and returned. The discount amount rule does this: Convert the amount to pennies by multiplying by 100.0..." Tag: Visual edit