Openbravo Issue Tracking System - POS2
View Issue Details
0057430POS2POSpublic2024-11-27 17:372024-12-15 11:55
jfvaringot 
Bimla_vm 
urgentmajoralways
closedfixed 
5
 
24Q4.1 
No
0057430: POS2 - The 'overpayment' amount is doubled
There's an issue in the calculation amount in refunds.
The issue is linked to the function : getDisplayTotalFromTicket: (ticket, printSettings)

This regression is introduced in https://issues.openbravo.com/view.php?id=52379 [^] and https://issues.openbravo.com/view.php?id=54782. [^]
On POS 2 :
1. Do a sale
2. Do a verified return from this sale
3. The overpayment amount displayed is doubled, vs. the payed amount
No tags attached.
blocks defect 0057311 closed Bimla_vm POS2 - The 'overpayment' amount is doubled 
Issue History
2024-12-11 16:33javierRodriguezTypedefect => backport
2024-12-11 16:33javierRodriguezTarget Version => 24Q4.1
2024-12-11 16:38javierRodriguezStatusscheduled => resolved
2024-12-11 16:38javierRodriguezResolutionopen => fixed
2024-12-11 16:38javierRodriguezStatusresolved => closed
2024-12-11 16:38javierRodriguezStatusclosed => new
2024-12-11 16:38javierRodriguezResolutionfixed => open
2024-12-12 06:15hgbotNote Added: 0173195
2024-12-12 06:16Bimla_vmStatusnew => scheduled
2024-12-12 15:16guillermogilStatusscheduled => acknowledged
2024-12-12 15:16guillermogilStatusacknowledged => scheduled
2024-12-15 11:55hgbotResolutionopen => fixed
2024-12-15 11:55hgbotStatusscheduled => closed
2024-12-15 11:55hgbotNote Added: 0173299
2024-12-15 11:55hgbotFixed in Version => RR24Q4.1
2024-12-15 11:55hgbotNote Added: 0173300

Notes
(0173195)
hgbot   
2024-12-12 06:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1838 [^]
(0173299)
hgbot   
2024-12-15 11:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1838 [^]
(0173300)
hgbot   
2024-12-15 11:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 7daeadd288d8461b6da79e0c34088159b895bebe
Author: Bimla Mayavan <b.mayavan@external.orisha.com>
Date: 12-12-2024 10:44:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/7daeadd288d8461b6da79e0c34088159b895bebe [^]

Fixed ISSUE-57430: Updated the grossAmount with the absolute value

---
M web-test/external-device/printing/PrintUtils.test.js
M web/org.openbravo.retail.posterminal/app/external-device/printing/PrintUtils.js
---