Openbravo Issue Tracking System - Retail Modules
View Issue Details
0024660Retail ModulesDiscounts and Promotionspublic2013-09-02 13:222014-03-14 10:53
sureshbabu 
guilleaer 
lowminoralways
closedfixed 
5
 
RMP26.1 
marvintm
No
0024660: RMP26.1: Precision issue in Price list not inclusive of taxes when applying receipt discount Disc_fixed_5_Perc is applied
 Precision issue in Price list not inclusive of taxes when applying receipt discount Disc_fixed_5_Perc is applied
1) create a receipt with below details
Product: Base camp Lantern Qty:1
Product: Torch Mini Qty:1

2) Then apply Receipt discounts "Disc_fixed_5_Perc"

3) Check the discount amount(precision issue) in both the line items

Defect:
For line 1, Product: Base camp Lantern actual Discount amount is 2.77 where as the expected one is 2.78

For line 2, Product: Torch Mini actual Discount amount is 0.67 where as the expected one is 0.68


Taxable amount shown as 65.56 but the expected taxable amount is 65.54

No tags attached.
png Precision issue in Price list not inclusive of taxes when applying receipt discount Disc_fixed_5_Perc is applied.png (225,423) 2013-09-02 13:22
https://issues.openbravo.com/file_download.php?file_id=6374&type=bug
png
Issue History
2013-09-02 13:22sureshbabuNew Issue
2013-09-02 13:22sureshbabuAssigned To => marvintm
2013-09-02 13:22sureshbabuFile Added: Precision issue in Price list not inclusive of taxes when applying receipt discount Disc_fixed_5_Perc is applied.png
2013-09-02 13:22sureshbabuTriggers an Emergency Pack => No
2013-09-03 10:33guilleaerAssigned Tomarvintm => guilleaer
2013-09-03 10:33guilleaerStatusnew => scheduled
2013-09-03 10:33guilleaerfix_in_branch => pi
2013-09-03 10:34guilleaerNote Added: 0060885
2013-09-03 10:34guilleaerStatusscheduled => resolved
2013-09-03 10:34guilleaerFixed in Version => RMP26.1
2013-09-03 10:34guilleaerResolutionopen => fixed
2013-09-03 17:07marvintmReview Assigned To => marvintm
2013-09-03 17:07marvintmStatusresolved => closed
2014-03-14 07:57sureshbabuNote Added: 0065153
2014-03-14 10:53guilleaerNote Added: 0065159

Notes
(0060885)
guilleaer   
2013-09-03 10:34   
https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/d3d9aeb381a4a6fd6c15961fbaf4a0f10db9a7bd [^]
(0065153)
sureshbabu   
2014-03-14 07:57   
@Guilleaer: Not sure what is the expected result here..because i am finding the same behavior here.
(0065159)
guilleaer   
2014-03-14 10:53   
It is working fine.
----------
line 1:
price: 55.5
disc: 5%

55.5 * 0.95 = 52.725 -> round -> 52.73
55.5 - 52.73 = 2.77 -> Fine!
---------------

line 2:
price: 13.5
disc: 5%

13.5 * 0.95 = 12.825 -> round -> 12.83
13.5 - 12.83 = 0.67 -> fine!
---------------

Taxable amount is fine -> (55.5 - 2.77) + (13.5 - 0.67) = 65.56