Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047280Retail ModulesWeb POSpublic2021-06-29 13:582021-08-11 11:29
maite 
rqueralta 
urgentmajoralways
closedfixed 
5
 
 
marvintm
No
0047280: Change Payments info wrongly calculated
Payment related to a ticket of a total 0 is considered as "change payment". However, when a product of lower price is added and paid in SCO mode, the change payments section is still calculated with the original's product price (instead of the real change amount)
1. Add any product to the ticket, for example with price 8.95
2. Add payment in Cash
3. Delete line, so the ticket's total is 0 but the payment is still there in ChangePayments section (OB.MobileApp.model.receipt.attributes.changePayments) with amount of 8.95
4. Go to SCO mode
5. Add another product with price 0.16. Pay the ticket in SCO and finish. The ticket will be paid with the payment of 8.95 already existent. But check the JSON and realize that "changePayments" section is calculated as 8.95 (when it should be 8.79)

However, if you repeat steps 4 and 5 in normal mode (not SCO mode) and checks the JSON you can see that "changePayments" section is correctly calculated as 8.79
No tags attached.
related to defect 0046862 closed rqueralta Payment not correctly removed when it has been considered as "change payment" 
patch 0001-Fixed-BUG-47280-Recalculated-Change-Payments-info-wr.patch (1,723) 2021-07-31 09:39
https://issues.openbravo.com/file_download.php?file_id=16053&type=bug
Issue History
2021-06-29 13:58maiteNew Issue
2021-06-29 13:58maiteAssigned To => Retail
2021-06-29 13:58maiteResolution time => 1626732000
2021-06-29 13:58maiteTriggers an Emergency Pack => No
2021-06-29 14:02maiteRelationship addedrelated to 0046862
2021-07-07 17:48rqueraltaAssigned ToRetail => rqueralta
2021-07-07 17:48rqueraltaStatusnew => scheduled
2021-07-23 12:47adrianromeroStatusscheduled => resolved
2021-07-23 12:47adrianromeroResolutionopen => fixed
2021-07-23 17:12rqueraltaFile Added: 0001-Fixed-BUG-47280-Recalculated-Change-Payments-info-wr.patch
2021-07-31 09:39rqueraltaFile Deleted: 0001-Fixed-BUG-47280-Recalculated-Change-Payments-info-wr.patch
2021-07-31 09:39rqueraltaFile Added: 0001-Fixed-BUG-47280-Recalculated-Change-Payments-info-wr.patch
2021-08-11 11:29marvintmReview Assigned To => marvintm
2021-08-11 11:29marvintmNote Added: 0131060
2021-08-11 11:29marvintmStatusresolved => closed

Notes
(0131060)
marvintm   
2021-08-11 11:29   
The problem affects a custom module, the patch can be used to solve it.