LHansoon / bill-calculator

GNU General Public License v3.0
0 stars 0 forks source link

calculation too precise #70

Closed LHansoon closed 5 months ago

LHansoon commented 5 months ago

the number on the receipt usually keeps 2 decimal places, it's too precise in the current implementation

LHansoon commented 5 months ago

cancel for now the calculating process on receipt:

  1. sum all entries that need tax to be implemented
  2. result from 1 * tax rate, round 2
  3. sum of tax and regular entry

unfortunately, we don't record nor process entries based on receipt, so the rounding at the very end could be wrong.