1

There is a discrepancy between the system's calculation and manual calculation due to the discount being displayed with only two decimal places. This can be confusing for users who are manually calculating the net amount.


Since the system automatically rounds the discount to two decimal places, it can result in inaccurate values when manually computing the total.


In our scenario, we apply a 25% discount on an item priced at 13.26 per unit. The actual discount calculation is 13.26 * 0.25 = 3.315. However, the front-end displays this as 3.32 due to automatic rounding to two decimal places.

This rounding causes a discrepancy between the system-calculated discount and the manually computed amount, which can confuse users who try to verify the net amount manually.



Example:

System calculation: Manual Calculation:

Unit price 13.26 Unit price 13.26

Disc Amount = 3.315 Disc Amount = 3.32 (rounded off that is displayed in

the discount field)

Quantity = 12 Quantity = 12


Base Net price = Unit price * Quantity Base Net price = Unit price * Quantity

13.26 * 12 = 152.12 13.26 * 12 = 152.12


Discount net = Disc Amount * Quantity Discount net = Disc Amount * Quantity

3.315 * 12 = 39.78 3.32 * 12 = 39.84


Total net Amt = 159.12 - 39.79 = 119.34 Total net Amt = 159.12 - 39.84 = 119.28




STATUS DETAILS
New