Openbravo Issue Tracking System - POS2
View Issue Details
0055188POS2POSpublic2024-04-12 15:092024-04-25 07:56
charlotte_vasseur 
SABARINATH P 
normalminoralways
closedno change required 
5
24Q1 
 
marvintm
No
0055188: [SALES] Updated date is before creation date
In Sales order window (and in JSon if External System if configured): updated date (local or not) is before creation date (local or not)
In POS
Finalize a sale
In the backoffice, go to Sales Order window
Open the previous sale and deploy Audit section
Check Updated and Creation dates
=> Updated is before Creation date
(See Updated before creation date.png)

Same if creation and local dates are configured
Same in JSon if External System if configured to send the ticket
No tags attached.
png Updated before creation date.png (181,906) 2024-04-12 15:09
https://issues.openbravo.com/file_download.php?file_id=19646&type=bug
png
Issue History
2024-04-12 15:09charlotte_vasseurNew Issue
2024-04-12 15:09charlotte_vasseurAssigned To => Retail
2024-04-12 15:09charlotte_vasseurFile Added: Updated before creation date.png
2024-04-12 15:09charlotte_vasseurTriggers an Emergency Pack => No
2024-04-15 09:09guilleaerStatusnew => acknowledged
2024-04-16 13:53SABARINATH PAssigned ToRetail => SABARINATH P
2024-04-16 13:53SABARINATH PStatusacknowledged => scheduled
2024-04-25 07:56marvintmReview Assigned To => marvintm
2024-04-25 07:56marvintmNote Added: 0163716
2024-04-25 07:56marvintmStatusscheduled => closed
2024-04-25 07:56marvintmResolutionopen => no change required

Notes
(0163716)
marvintm   
2024-04-25 07:56   
"created" date comes from the client device. "updated" date is set according to the date in the backend server, once the data arrives to the backend. It works in this way because as the POS supports offline, we want to have a reference about when was the document actually created and completed in the terminal, and we can only use the local date for this.

If the date of the local device is incorrectly set, and "in the future", this problem can happen. The solution would then be to properly set it to the correct value, and ideally to use an automatic date mechanism that all modern operating systems provide.