Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053965Retail ModulesDiscounts and Promotionspublic2023-11-16 14:352023-12-15 07:51
aaroncalero 
Rajesh_18 
highmajoralways
scheduledopen 
5
 
 
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: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:51hgbotNote Added: 0158246

Notes
(0158246)
hgbot   
2023-12-15 07:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.discounts/-/merge_requests/8 [^]