Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044397Retail ModulesWeb POSpublic2020-06-17 17:342020-06-17 17:35
gorka_gil 
Retail 
highmajoralways
newopen 
5
 
 
No
0044397: Sending more information than needed in the ticket, after adding the cashup to the state
There is two problems related to this:

1. In the message of the ticket to the backend,
is sending the cashmanagements inside the cashupReportInformation, this should be removed in the message send to the backend, but should remain in the state information.

2. In the steate in the cashManagements is storing the cashUpReportInformation, but this information should be only added when sending the cahmanagement to the backend.
Problem 1.

1. livebuilds (something like 20q2), pos pack, terminal vbs-1
2. clean cashup
3. create a cashmanagement, for example 5 deposit
4. open developer tools, network tab, clean
5. make a ticket, for example an avalanche transceiver
6. look for the first of the order loader messages, in the request payload, click on view source, at the botton click on view more, and copy all the request payload, and paste in vs code or any place to give json format
7. inside it will be a objtosend that is escaped, select this part and replace in this part the \" with a "

8. Repeat the same with the branch of indexeddb stable, there is a json of the project that can be used in the scripts.
9. Instead objtosend will have cashupReportInformation
10. Comparare the objtosend with the cashupReportInformation, and the cashupReportInformation will have an extra object cashManagements inside each cashPaymentMethodInfo


Problem 2.

1. In the indexeddb workspace, (for example pack and vbs-1)
2. Do clean cashup
3. Do a cashmanagement (for example 5 deposit)
4. Execute in the dev tools console: OB.App.State.getState().Cashup
5. Expand the cashPaymentMethodInfo, expand the payments till found the one used cash
6. Expand the cashManagements inside and you will see that has an object that should have cashUpReportInformation.
Note: the cashUpReportInformation is needed when sending the message to the backend, but should not be stored in the state.
1. Remove the cashManagements in the ticket message.
2. Don't save in the state the cashUpReportInformation of the cashManagements.
No tags attached.
related to feature request 0044381 new gorka_gil Cashup and Cash management models need to be migrated to Indexeddb 
Issue History
2020-06-17 17:34gorka_gilNew Issue
2020-06-17 17:34gorka_gilAssigned To => Retail
2020-06-17 17:34gorka_gilTriggers an Emergency Pack => No
2020-06-17 17:35gorka_gilRelationship addedrelated to 0044381

There are no notes attached to this issue.