Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0040509 | Retail Modules | Discount Matrix Management | public | 2019-04-02 17:42 | 2019-04-15 13:35 | |||||||
Reporter | ngarcia | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR19Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | adrianromero | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0040509: Deleted orders go to Errors While Importing POS Data if they have a range discount approval | |||||||||||
Description | Deleted orders go to Errors While Importing POS Data if they have a range discount approval. The WRONG approval section includes the following: "approvals": [{ "approvalType": { "approval": "...", "message": "...", "params": ["..."] }, "userContact": "...", "created": ... }] The RIGHT one is: "approvals": [{ "approvalType": "...", "userContact": "...", "created": ..., "approvalMessage": "..." }] | |||||||||||
Steps To Reproduce | In the backoffice: Set the 'Web POS Discount Matrix - Discount Approval' preference to Y for Openbravo user Set the 'Web POS Save Removed Tickets' preference to Y Set a Range Discount to VallBlancaUser: Discount from: 0 Discount to: 100 Approval required: Y In the POS: Create a new ticket Add a product to it Reduce it's price Approve it with Openbravo user Delete the ticket In the backoffice: Check the order is stuck in Errors While Importing POS Data with the following error message: org.openbravo.base.exception.OBException: Error in OrderLoader: approvalType: Property OBPOS_Order_Approval.approvalType only allows instances of java.lang.String but the value is an instanceof org.codehaus.jettison.json.JSONObject at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:443) ... Caused by: org.openbravo.base.validation.ValidationException: approvalType: Property OBPOS_Order_Approval.approvalType only allows instances of java.lang.String but the value is an instanceof org.codehaus.jettison.json.JSONObject at org.openbravo.base.model.domaintype.BasePrimitiveDomainType.checkIsValidValue(BasePrimitiveDomainType.java:58) ... | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | issue 40509 source posterminal.patch (1,227) 2019-04-03 14:54 https://issues.openbravo.com/file_download.php?file_id=12833&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-04-02 17:42 | ngarcia | New Issue | ||||||||||
2019-04-02 17:42 | ngarcia | Assigned To | => Retail | |||||||||
2019-04-02 17:42 | ngarcia | Resolution time | => 1555970400 | |||||||||
2019-04-02 17:42 | ngarcia | Triggers an Emergency Pack | => No | |||||||||
2019-04-02 17:43 | ngarcia | Relationship added | related to 0039570 | |||||||||
2019-04-02 18:11 | ngarcia | Issue Monitored: networkb | ||||||||||
2019-04-03 12:58 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2019-04-03 12:59 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2019-04-03 14:54 | ranjith_qualiantech_com | File Added: issue 40509 source posterminal.patch | ||||||||||
2019-04-08 11:38 | hgbot | Checkin | ||||||||||
2019-04-08 11:38 | hgbot | Note Added: 0111014 | ||||||||||
2019-04-08 11:38 | hgbot | Status | scheduled => resolved | |||||||||
2019-04-08 11:38 | hgbot | Resolution | open => fixed | |||||||||
2019-04-08 11:38 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/30be70babd074d256f13ef5730ee94a42202137d [^] | |||||||||
2019-04-15 13:35 | adrianromero | Review Assigned To | => adrianromero | |||||||||
2019-04-15 13:35 | adrianromero | Note Added: 0111134 | ||||||||||
2019-04-15 13:35 | adrianromero | Status | resolved => closed | |||||||||
2019-04-15 13:35 | adrianromero | Fixed in Version | => RR19Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|