Openbravo Issue Tracking System - POS2
View Issue Details
0056679POS2POSpublic2024-10-07 17:572024-11-06 15:22
fermin_ostivar 
radhakrishnan 
normalminoralways
closedfixed 
5
pi 
 
No
0056679: External disocunts wrong applied in Cancel And Replace
If an order is loaded to apply a cancel and replace and this one has discounts applied from the external discount, when the pay button is pressed the external discount service is called again applying wrongly the discounts to the order.

[BOS]
Activate "Use External discounts engine" at Organization level
Configure the discount Event Subscription setting the simulator as External System
OB.CDISCTEST.DiscountsEngineSimulator?mode=test
Activate the preference "Enable Cancel and Replace"

[POS]
Add Product and pay the order
Go to order click on the three dots and select "Cancel and Replace"
Click on Pay button
The discounts applied are wrong
To manage correctly the discount for the "Cancel and Replace" Order
No tags attached.
? Screencast from 07-10-24 17:58:59.webm (2,163,305) 2024-10-07 17:59
https://issues.openbravo.com/file_download.php?file_id=20248&type=bug
Issue History
2024-10-07 17:57fermin_ostivarNew Issue
2024-10-07 17:57fermin_ostivarAssigned To => Retail
2024-10-07 17:57fermin_ostivarTriggers an Emergency Pack => No
2024-10-07 17:59fermin_ostivarFile Added: Screencast from 07-10-24 17:58:59.webm
2024-10-08 11:52aferrazAssigned ToRetail => Triage Omni OMS
2024-10-08 11:54aferrazNote Added: 0170101
2024-10-16 07:23jonaeAssigned ToTriage Omni OMS => kousalya_r
2024-10-16 09:23jonaeAssigned Tokousalya_r => radhakrishnan
2024-11-05 08:09hgbotNote Added: 0171364
2024-11-06 12:45hgbotResolutionopen => fixed
2024-11-06 12:45hgbotStatusnew => closed
2024-11-06 12:45hgbotNote Added: 0171538
2024-11-06 12:45hgbotNote Added: 0171539
2024-11-06 12:51hgbotNote Added: 0171540
2024-11-06 15:22hgbotNote Added: 0171556

Notes
(0170101)
aferraz   
2024-10-08 11:54   
Jira: https://openbravo.atlassian.net/browse/RM-17959 [^]
(0171364)
hgbot   
2024-11-05 08:09   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.discounts/-/merge_requests/14 [^]
(0171538)
hgbot   
2024-11-06 12:45   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.discounts [^]
Changeset: bf82d9ed0366780c503a7595353908c518240f84
Author: Radhakrishnan Seeman <r.seeman@external.orisha.com>
Date: 06-11-2024 11:45:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.discounts/-/commit/bf82d9ed0366780c503a7595353908c518240f84 [^]

Fixed ISSUE-56679: Added isExternalConfirmedDiscount flag

---
A src/org/openbravo/events/discounts/hook/ExternalDiscountsPaidReceiptsPromotionExtraFieldHook.java
---
(0171539)
hgbot   
2024-11-06 12:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.discounts/-/merge_requests/14 [^]
(0171540)
hgbot   
2024-11-06 12:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1759 [^]
(0171556)
hgbot   
2024-11-06 15:22   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1759 [^]