Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0038727 | Retail Modules | Web POS | public | 2018-06-07 15:23 | 2018-06-25 12:34 | |||||||
Reporter | aaroncalero | |||||||||||
Assigned To | marvintm | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR18Q2.1 | Fixed in Version | ||||||||||
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. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2018-06-08 13:50 | marvintm | Type | defect => backport | |||||||||
2018-06-08 13:50 | marvintm | Target Version | => RR18Q2.1 | |||||||||
2018-06-22 14:24 | hgbot | Checkin | ||||||||||
2018-06-22 14:24 | hgbot | Note Added: 0105347 | ||||||||||
2018-06-22 14:24 | hgbot | Status | scheduled => resolved | |||||||||
2018-06-22 14:24 | hgbot | Resolution | open => fixed | |||||||||
2018-06-22 14:24 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/23da3e33c5ceb47d52616c32335a59095ed67146 [^] => http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.retail.posterminal/rev/32b8849f2c44908f1b8ac4e9b0ceaf146acd43e8 [^] | |||||||||
2018-06-22 14:26 | hgbot | Checkin | ||||||||||
2018-06-22 14:26 | hgbot | Note Added: 0105348 | ||||||||||
2018-06-22 14:26 | hgbot | Fixed in SCM revision | http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.retail.posterminal/rev/32b8849f2c44908f1b8ac4e9b0ceaf146acd43e8 [^] => http://code.openbravo.com/retail/backports/3.0RR18Q2.1/org.openbravo.mobile.core/rev/b9fd8c6f62f174cc4e0b9c4143265d6120900811 [^] | |||||||||
2018-06-25 12:34 | migueldejuana | Review Assigned To | => migueldejuana | |||||||||
2018-06-25 12:34 | migueldejuana | Note Added: 0105357 | ||||||||||
2018-06-25 12:34 | migueldejuana | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|