Openbravo Issue Tracking System - POS2
View Issue Details
0057592POS2Corepublic2025-01-08 15:492025-01-30 16:15
dorian_robillard 
Bimla_vm 
highminoralways
closedfixed 
5
 
25Q2 
No
0057592: When using partially a coupon in a ticket with minimum 2 lines, the remaining balance printed is wrong
The template coupon standard doesn't manage correctly the remaining balance.

The remaining balance in backoffice is correct
Create a new discount, type "Variable Amount Coupons" and tick "uses coupon code"

Add a coupon"1234' in the tab with an amount 10
Active the discount

Connect to pos
Add 2 products for a total < 10€
Pay the ticket and print

The remaining balance is the printed ticket is the initial amount of coupon minus the amount of the 2nd line
No tags attached.
png coupon 1.png (66,467) 2025-01-08 15:49
https://issues.openbravo.com/file_download.php?file_id=20719&type=bug
png

png coupon2.png (41,829) 2025-01-08 15:49
https://issues.openbravo.com/file_download.php?file_id=20720&type=bug
png
Issue History
2025-01-08 15:49dorian_robillardNew Issue
2025-01-08 15:49dorian_robillardAssigned To => Triage Platform Base
2025-01-08 15:49dorian_robillardFile Added: coupon 1.png
2025-01-08 15:49dorian_robillardTriggers an Emergency Pack => No
2025-01-08 15:49dorian_robillardFile Added: coupon2.png
2025-01-08 16:34victor_perezAssigned ToTriage Platform Base => Retail
2025-01-08 18:16guilleaerAssigned ToRetail => guilleaer
2025-01-08 18:16guilleaerStatusnew => acknowledged
2025-01-09 05:57Bimla_vmAssigned Toguilleaer => Bimla_vm
2025-01-09 07:03guillermogilNote Added: 0173933
2025-01-09 07:03guillermogilSeveritymajor => minor
2025-01-09 07:37Bimla_vmStatusacknowledged => scheduled
2025-01-10 12:07hgbotNote Added: 0174005
2025-01-30 16:15hgbotResolutionopen => fixed
2025-01-30 16:15hgbotStatusscheduled => closed
2025-01-30 16:15hgbotNote Added: 0174917
2025-01-30 16:15hgbotNote Added: 0174918
2025-01-30 16:15guilleaerFixed in Version => 25Q2

Notes
(0173933)
guillermogil   
2025-01-09 07:03   
Decreasing it to minor as only affects the printed template
(0174005)
hgbot   
2025-01-10 12:07   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/66 [^]
(0174917)
hgbot   
2025-01-30 16:15   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf [^]
Changeset: 5f8231062a3c3815d904f8f80ec97216b43b2ae7
Author: Bimla V Mayavan <b.mayavan@external.orisha.com>
Date: 30-01-2025 15:15:18
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/commit/5f8231062a3c3815d904f8f80ec97216b43b2ae7 [^]

Fixed ISSUE-57592: Calculated remaining balance if coupon used partially

---
M web-jspack/org.openbravo.retail.discounts.coupons.otf/src/model/global/actions/utils/PrintCoupons.js
---
(0174918)
hgbot   
2025-01-30 16:15   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/merge_requests/66 [^]