Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0038727 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | major | always | 2018-06-07 15:23 | 2018-06-25 12:34 | |||
Reporter | aaroncalero | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | b9fd8c6f62f1 | ||||
Projection | none | ETA | none | Target Version | RR18Q2.1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | migueldejuana | |||||||
OBNetwork customer | OBPS | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0038727: OutDatedDataChangeException thrown when modifying a ticket updated before a time change | |||||||
Description | The existing verification of concurrent modification of orders/layaways can fail if an order was modified for the last time before a time change (i.e. during Winter time) and now it is modified again from web pos (adding a new payment, etc). The OrderLoader checks the following two values: loaded = POSUtils.dateFormatUTC.parse(jsonorder.getString("loaded")); updated = OBMOBCUtils.convertToUTC(order.getUpdated()); The loaded variable is converted correctly to the utc date, however the updated variable is converted taking into account the timezone offset of the current date | |||||||
Steps To Reproduce | Login in web pos Create a simple ticket with a product and pay it. Change the updated value of the order in the database to a date in february (before the Daylight saving time change) Load a ticket again in web pos. Do a reverse payment (click on the total amount > click on reverse payment button > click on Ok) and complete the ticket payment again. Click on Done. Verify that the ticket has ended in Errors While importing POS Data window and that the cause of the error is an OutDatedDataChangeException. | |||||||
Proposed Solution | The OBMOBCUtils.convertToUTC method takes the date passed as an argument and adds 2 different offsets, the timezone offset and the DST offset, which are taken from the current date. The DST offset should be taken from the date that is being converted to UTC. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0105347) hgbot (developer) 2018-06-22 14:24 |
Repository: retail/backports/3.0RR18Q2.1/org.openbravo.retail.posterminal Changeset: 32b8849f2c44908f1b8ac4e9b0ceaf146acd43e8 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Fri Jun 22 14:24:49 2018 +0200 URL: http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.retail.posterminal/rev/32b8849f2c44908f1b8ac4e9b0ceaf146acd43e8 [^] Fixed issue 38727. OutDatedDataChangeException thrown when modifying a ticket updated before a time change. 'loaded' and 'updated' dates (both coming from server in the end) will be parsed and transformed in the same way, thus avoiding problems with timezones and daylight saving changes --- M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java M src/org/openbravo/retail/posterminal/OrderLoader.java M src/org/openbravo/retail/posterminal/ProcessVoidLayaway.java --- |
(0105348) hgbot (developer) 2018-06-22 14:26 |
Repository: retail/backports/3.0RR18Q2.1/org.openbravo.mobile.core Changeset: b9fd8c6f62f174cc4e0b9c4143265d6120900811 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Fri Jun 22 14:25:46 2018 +0200 URL: http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.mobile.core/rev/b9fd8c6f62f174cc4e0b9c4143265d6120900811 [^] Fixed issue 38727. OutDatedDataChangeException thrown when modifying a ticket updated before a time change. 'loaded' and 'updated' dates (both coming from server in the end) will be parsed and transformed in the same way, thus avoiding problems with timezones and daylight saving changes --- M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java --- |
(0105357) migueldejuana (viewer) 2018-06-25 12:34 |
Reviewed |
Copyright © 2000 - 2009 MantisBT Group |