Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044397
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-06-17 17:342020-06-17 17:35
Reportergorka_gilView Statuspublic 
Assigned ToRetail 
PriorityhighResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0044397: Sending more information than needed in the ticket, after adding the cashup to the state

DescriptionThere 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.
Steps To ReproduceProblem 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.
Proposed Solution1. Remove the cashManagements in the ticket message.
2. Don't save in the state the cashUpReportInformation of the cashManagements.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0044381 newgorka_gil Cashup and Cash management models need to be migrated to Indexeddb 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2020-06-17 17:34 gorka_gil New Issue
2020-06-17 17:34 gorka_gil Assigned To => Retail
2020-06-17 17:34 gorka_gil Triggers an Emergency Pack => No
2020-06-17 17:35 gorka_gil Relationship added related to 0044381


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker