Openbravo Issue Tracking System - POS2
View Issue Details
0057311POS2POSpublic2024-11-27 17:372024-12-11 16:34
jfvaringot 
Bimla_vm 
urgentmajoralways
closedfixed 
5
 
 
No
0057311: 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.
depends on backport 005743024Q4.1 closed Bimla_vm POS2 - The 'overpayment' amount is doubled 
Issue History
2024-11-27 17:37jfvaringotNew Issue
2024-11-27 17:37jfvaringotAssigned To => Retail
2024-11-27 17:37jfvaringotTriggers an Emergency Pack => No
2024-11-29 20:12guilleaerAssigned ToRetail => guilleaer
2024-11-29 20:12guilleaerStatusnew => acknowledged
2024-12-02 05:53Bimla_vmAssigned Toguilleaer => Bimla_vm
2024-12-02 05:53Bimla_vmStatusacknowledged => scheduled
2024-12-03 11:16hgbotNote Added: 0172920
2024-12-11 16:33javierRodriguezStatusscheduled => acknowledged
2024-12-11 16:33javierRodriguezStatusacknowledged => scheduled
2024-12-11 16:34hgbotResolutionopen => fixed
2024-12-11 16:34hgbotStatusscheduled => closed
2024-12-11 16:34hgbotNote Added: 0173184
2024-12-11 16:34hgbotFixed in Version => RR25Q1
2024-12-11 16:34hgbotNote Added: 0173185

Notes
(0172920)
hgbot   
2024-12-03 11:16   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1821 [^]
(0173184)
hgbot   
2024-12-11 16:34   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1821 [^]
(0173185)
hgbot   
2024-12-11 16:34   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1fbc9f064362931866b0a9dce2991a5e7ea90e11
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 11-12-2024 15:34:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1fbc9f064362931866b0a9dce2991a5e7ea90e11 [^]

Fixed ISSUE-57311: 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
---