Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0045649 | Retail Modules | Discounts and Promotions | public | 2020-12-24 11:49 | 2020-12-31 13:36 |
Reporter | nicola_uva | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | pi | Fixed in Version | RR21Q1 | ||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0045649: Promotions are removed from paid ticket when a custom action is register on Ticket model | ||||
Description | Promotions are removed from paid ticket when a custom action is register on Ticket model. Below the code to register an action (function OBRCTDTicketDematModelDefinition() { OB.App.StateAPI.Ticket.registerAction( 'showTicketDematPopup', (ticket, payload) => { const newTicket = { ...ticket }; return newTicket; } ); })(); OB.App.StateAPI.Ticket.showTicketDematPopup.addPreHook( (globalState, payload) => { let newGlobalState = { ...globalState }, return newGlobalState; } ); | ||||
Steps To Reproduce | 1)In the ERP configure a promotion with discount type "Variable Discount per Total Amount" 2) Register the action as explained in the description field 2) Login in the WEBPOS 3) Add a line to the receipt and apply to the promotions in (1) 4) Pay the ticket 5) Open the ticket paid 6) Invoke the action in the console of the browser using this code OB.App.State.Ticket.showTicketDematPopup() 7) the promotions is removed from the ticket | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-12-24 11:49 | nicola_uva | New Issue | |||
2020-12-24 11:49 | nicola_uva | Assigned To | => Retail | ||
2020-12-24 11:49 | nicola_uva | Resolution time | => 1609801200 | ||
2020-12-24 11:49 | nicola_uva | Triggers an Emergency Pack | => No | ||
2020-12-24 13:06 | nicola_uva | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=21971#r21971 | ||
2020-12-28 06:20 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2020-12-29 06:24 | ranjith_qualiantech_com | Status | new => scheduled | ||
2020-12-30 07:22 | hgbot | Note Added: 0125155 | |||
2020-12-30 07:22 | hgbot | Note Added: 0125156 | |||
2020-12-31 13:36 | hgbot | Resolution | open => fixed | ||
2020-12-31 13:36 | hgbot | Status | scheduled => closed | ||
2020-12-31 13:36 | hgbot | Fixed in Version | => RR21Q1 | ||
2020-12-31 13:36 | hgbot | Note Added: 0125229 | |||
2020-12-31 13:36 | hgbot | Note Added: 0125230 | |||
2020-12-31 13:36 | hgbot | Note Added: 0125231 | |||
2020-12-31 13:36 | hgbot | Note Added: 0125232 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|