Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058145Retail ModulesWeb POSpublic2025-03-05 14:522025-03-27 08:50
sofidossant 
Bimla_vm 
normalminoralways
closedfixed 
5
RR24Q4 
RR25Q2 
approved
OBPS
121253
No
0058145: Return rounding with discounts
When I make the return of an order with a quantity line 2 and a discount as for example 30.99, and I make 2 returns (1 of each quantity), the discount gives me 15.50, which is incorrect because if we add 15.50 *2= 31, and not 30.99.

This causes errors with the RT Printer, as we see the difference error “Receipt verification error: Sum of gross of each line is not equal to gross: ‘closed’, gross: XX, difference: XX”
1- Open the webpos.
2- Do a order with 1 line with qty 2, price 154.95, and applied the discount with 10%, see the discount 30.99
3- Pay the order
4 - Do a return for 1 qty, see the discount 15.50
5- Do a return with the rest of wty, see the discount 15.50.

Incorrect, we have the total 31 and not 30.99

VIDEO
https://drive.google.com/file/d/1otOLvzw7bymVX304D1l73EfUwBj0B5tn/view?usp=sharing [^]
No tags attached.
Issue History
2025-03-05 14:52sofidossantNew Issue
2025-03-05 14:52sofidossantAssigned To => Retail
2025-03-05 14:52sofidossantOBNetwork customer => OBPS
2025-03-05 14:52sofidossantSupport ticket => 121253
2025-03-05 14:52sofidossantTriggers an Emergency Pack => No
2025-03-06 14:27Bimla_vmAssigned ToRetail => Bimla_vm
2025-03-06 14:27Bimla_vmStatusnew => scheduled
2025-03-14 09:57hgbotMerge Request Status => open
2025-03-14 09:57hgbotNote Added: 0176834
2025-03-27 05:43hgbotNote Added: 0177299
2025-03-27 08:49hgbotMerge Request Statusopen => approved
2025-03-27 08:50hgbotNote Added: 0177306
2025-03-27 08:50hgbotResolutionopen => fixed
2025-03-27 08:50hgbotStatusscheduled => closed
2025-03-27 08:50hgbotFixed in Version => RR25Q2
2025-03-27 08:50hgbotNote Added: 0177307
2025-03-27 08:50hgbotNote Added: 0177308
2025-03-27 08:50hgbotNote Added: 0177309
2025-03-27 08:50hgbotNote Added: 0177310
2025-03-27 08:50hgbotNote Added: 0177311

Notes
(0176834)
hgbot   
2025-03-14 09:57   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/85 [^]
(0177299)
hgbot   
2025-03-27 05:43   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1991 [^]
(0177306)
hgbot   
2025-03-27 08:50   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: d97a9ecd253253811a473e3bc5a53b0f42bc69c6
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 27-03-2025 04:50:37
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/d97a9ecd253253811a473e3bc5a53b0f42bc69c6 [^]

Related to ISSUE-58145: Calculate usedDiscountAmt of the order

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0177307)
hgbot   
2025-03-27 08:50   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: f4a6b49a0ca2053c2f266b4c36cac29472173e06
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 27-03-2025 04:50:37
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/f4a6b49a0ca2053c2f266b4c36cac29472173e06 [^]

Fixed ISSUE-58145: Code review changes

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0177308)
hgbot   
2025-03-27 08:50   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1991 [^]
(0177309)
hgbot   
2025-03-27 08:50   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.returns [^]
Changeset: 8142945a547a5476bcce05f1a07d57d2bd127f7e
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 14-03-2025 12:25:08
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.returns/-/commit/8142945a547a5476bcce05f1a07d57d2bd127f7e [^]

Fixed ISSUE-58145: Calculate promotion amount during return order

---
M web/org.openbravo.retail.returns/app/model/business-object/ticket/actions/ReturnVerifiedTicket.js
---
(0177310)
hgbot   
2025-03-27 08:50   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.returns [^]
Changeset: 38ae3991750f324be7380675b7ec1dae939c4f37
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 24-03-2025 11:17:41
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.returns/-/commit/38ae3991750f324be7380675b7ec1dae939c4f37 [^]

Fixed ISSUE-58145: Code review changes

---
M web-test/model/business-object/ticket/actions/ReturnVerifiedTicket.test.js
M web/org.openbravo.retail.returns/app/model/business-object/ticket/actions/ReturnVerifiedTicket.js
---
(0177311)
hgbot   
2025-03-27 08:50   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.returns/-/merge_requests/85 [^]