Openbravo Issue Tracking System - POS2
View Issue Details
0046953POS2POSpublic2021-06-02 13:122021-06-07 09:23
marvintm 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
TAPTAP 
marvintm
Production - Confirmed Stable
2020-06-11
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/342be60966656fa86b620a0428e632d4b53ffb1f [^]
No
0046953: Order creationDate is not correctly set
Currently the creationDate of orders generated from the POS is not correctly set. It should always be set to the moment in which the order is completed. Instead, it is set to the moment in which the order is initialised in the frontend.

This is wrong in all cases, but it is particularly visible if the user completes an order one day and then leaves, and the next day he logs in the system, adds products and completes another order, as this last order will have creationDate from the day before.
- Log in the POS. Add some products and complete the order (so that a new order is created).
- Add some products and wait some minutes.
- Complete the order.
- Check the backend. Realise that the creationDate of the order is not the moment when it was completed, but when it was created.
The problem seems to be that the creationDate is being initialised when the order is initialised, and then it is not overwritten by the ticket completion process. Checking the previous version before the indexedDB change, the order did not acquire creationDate until after it was completed, and we should probably replicate this behaviour.
No tags attached.
blocks defect 0046952 closed ranjith_qualiantech_com Retail Modules Order creationDate is not correctly set 
Issue History
2021-06-02 13:16marvintmTypedefect => backport
2021-06-02 13:16marvintmTarget Version => TAP
2021-06-04 08:00ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-06-07 09:23marvintmNote Added: 0129118
2021-06-07 09:23marvintmStatusscheduled => resolved
2021-06-07 09:23marvintmFixed in Version => main
2021-06-07 09:23marvintmResolutionopen => fixed
2021-06-07 09:23marvintmReview Assigned To => marvintm
2021-06-07 09:23marvintmStatusresolved => closed
2021-06-07 09:23marvintmFixed in Versionmain => TAP

Notes
(0129118)
marvintm   
2021-06-07 09:23   
Fixed by the following MR:

https://gitlab.com/obcustomers/AGAP/org.openbravo.retail.posterminal/-/merge_requests/6 [^]