Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053965Retail ModulesDiscounts and Promotionspublic2023-11-16 14:352025-03-27 12:10
aaroncalero 
guilleaer 
highmajoralways
closedduplicate 
5
 
 
open
No
No
0053965: [External Discounts] Discount amount reset when converting a quotation into a ticket
When the External Discounts Engine is configured, and a quotation is created in WebPOS, if the quotation includes discounts from the external system and this quotation is converted into a ticket, the amounts of the discounts are returned to the initial value of the dummy discount used as template.

This issue is only visible after the fix of 0053653, which fixes the issue of discounts being removed after converting a quotation into a ticket.
In a modules environment (or pos2-modules).
In backoffice, configure the following:
* Organization window: Vall Blanca Store record, check "Use External Discounts Engine" and configure disc_fixed_5_euro as the discount to be used.
* External System window: Define a new record with protocol = 'Javascript - Frontend' and JS Class Name OB.CDISCTEST.DiscountsEngineSimulator?mode=test defined in its subtab
* Events Subscription window: Define a new record with event = "Event Discounts Provider" and the external system defined previously.

Steps:
Log in terminal VBS-1
Go to the menu > Create Quotation
Add two products and complete the quotation.
=> The external discounts call will be triggered and several discounts with different amounts will be added to the quotation

Go to the menu > Create Sales Order
On the "Firm quotation" popup click on Create Sales Order

Verify that all discounts have been reverted to 5€
No tags attached.
related to defect 0053653 closed Rajesh_18 The ExtraProperties entity is not correctly updated in the response call after a quotation has been transformed into a order 
Issue History
2023-11-16 14:35aaroncaleroNew Issue
2023-11-16 14:35aaroncaleroAssigned To => Retail
2023-11-16 14:35aaroncaleroOBNetwork customer => No
2023-11-16 14:35aaroncaleroTriggers an Emergency Pack => No
2023-11-16 14:35aaroncaleroRelationship addedrelated to 0053653
2023-12-14 11:17Rajesh_18Assigned ToRetail => Rajesh_18
2023-12-14 11:18Rajesh_18Statusnew => scheduled
2023-12-15 07:51hgbotMerge Request Status => open
2023-12-15 07:51hgbotNote Added: 0158246
2025-02-02 06:35guillermogilAssigned ToRajesh_18 => guilleaer
2025-03-27 12:10hgbotNote Added: 0177479
2025-03-27 12:10hgbotStatusscheduled => closed
2025-03-27 12:10hgbotResolutionopen => duplicate

Notes
(0158246)
hgbot   
2023-12-15 07:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.discounts/-/merge_requests/8 [^]
(0177479)
hgbot   
2025-03-27 12:10   
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24212 [^]