Openbravo Issue Tracking System - POS2
View Issue Details
0053991POS2POSpublic2023-11-21 17:392023-12-19 20:00
jfvaringot 
Rajesh_18 
urgentmajoralways
closedfixed 
5
 
 
approved
Gold
No
0053991: POS2 - Paid Sales Order - Cancel Order action does not take into account discounts
When cancelling an order pushed by API and already paid, including a discount, the discount is not taken into account. As a consequence, the customer could be reimbursed more than what he paid.

Reproduced on Livebuilds : https://livebuilds.openbravo.com/context/retail_pos2_pgsql/web/pos/?terminal=VBS-2 [^]
Back-office : https://livebuilds.openbravo.com/context/retail_pos2_pgsql/security/Login [^]
1. Push an SO with a discount, totally paid
2. Open POS
3. Select the Sales order list
4. Cancel the SO

-> The discount disappears
No tags attached.
has duplicate defect 0054079 closed Rajesh_18 Retail Modules Error with discount when you do a cancel Layaway 
? Livebuilds - Issue with Cancel Order - Discount disappears.mp4 (2,465,398) 2023-11-21 17:39
https://issues.openbravo.com/file_download.php?file_id=19165&type=bug
Issue History
2023-11-21 17:39jfvaringotNew Issue
2023-11-21 17:39jfvaringotAssigned To => Retail
2023-11-21 17:39jfvaringotFile Added: Livebuilds - Issue with Cancel Order - Discount disappears.mp4
2023-11-21 17:39jfvaringotTriggers an Emergency Pack => No
2023-11-21 17:40javietxeIssue Monitored: javietxe
2023-11-21 17:52javietxeOBNetwork customer => No
2023-11-21 17:52javietxeSeveritycritical => major
2023-11-21 18:29javietxeOBNetwork customerNo => Gold
2023-11-28 07:24Rajesh_18Assigned ToRetail => Rajesh_18
2023-11-28 07:24Rajesh_18Statusnew => scheduled
2023-12-02 10:43hgbotMerge Request Status => open
2023-12-02 10:43hgbotNote Added: 0157927
2023-12-12 13:27Rajesh_18Relationship addedhas duplicate 0054079
2023-12-19 20:00hgbotMerge Request Statusopen => approved
2023-12-19 20:00hgbotResolutionopen => fixed
2023-12-19 20:00hgbotStatusscheduled => closed
2023-12-19 20:00hgbotNote Added: 0158373
2023-12-19 20:00hgbotFixed in Version => RR24Q1
2023-12-19 20:00hgbotNote Added: 0158374

Notes
(0157927)
hgbot   
2023-12-02 10:43   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1421 [^]
(0158373)
hgbot   
2023-12-19 20:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1421 [^]
(0158374)
hgbot   
2023-12-19 20:00   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: b92daa684fb58eeeec2b4a5f36b03e2673001a6d
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 19-12-2023 19:00:14
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/b92daa684fb58eeeec2b4a5f36b03e2673001a6d [^]

Fixed ISSUE-53991: Skipped applying promotion on cancel Ticket action

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/actions/CreateCancelTicket.js
---