Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031729Retail ModulesWeb POSpublic2015-11-16 15:052016-02-01 19:01
aaroncalero 
Orekaria 
normalmajoralways
closedfixed 
5
 
RR15Q4.2RR15Q4.2 
guilleaer
Production - QA Approved
2015-10-30
RR15Q4
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2fd19707e840 [^]
No
0031729: [SERQA 397] The orderDate of receipts loaded in webPOS is showing an incorrect date
When an order is loaded in web pos, it's orderDate attribute is showing the day before, instead of showing the real day.
Login in web pos.
Create and pay an order.
Verify the order date in backend (e.g. Nov 16 2015).
Load the order in web pos (Menu > Receipts).
Use the browser console to get the order date: Ob.MobileApp.model.receipt.get('orderDate').
It will show an incorrect date (e.g. Nov 15 2015).
No tags attached.
blocks defect 0031503 closed guilleaer [SERQA 397] The orderDate of receipts loaded in webPOS is showing an incorrect date 
Issue History
2015-12-15 17:04guilleaerTypedefect => backport
2015-12-15 17:04guilleaerTarget Version => RR15Q4.2
2016-01-27 17:48OrekariaAssigned Toguilleaer => Orekaria
2016-01-28 15:27hgbotCheckin
2016-01-28 15:27hgbotNote Added: 0083672
2016-01-28 15:27hgbotStatusscheduled => resolved
2016-01-28 15:27hgbotResolutionopen => fixed
2016-01-28 15:27hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2568e469aaf3b4f6f6ffd581c9f295377af89046 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.retail.posterminal/rev/1ad41ea9ec4660ed5eced0cfc24014cddd12ef8c [^]
2016-01-28 15:45hgbotCheckin
2016-01-28 15:45hgbotNote Added: 0083680
2016-01-28 15:45hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.retail.posterminal/rev/1ad41ea9ec4660ed5eced0cfc24014cddd12ef8c [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core/rev/86f812751d4be92d83fe9d4bb7bd2cc31792a5f2 [^]
2016-01-28 15:45hgbotCheckin
2016-01-28 15:45hgbotNote Added: 0083682
2016-01-28 15:45hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core/rev/86f812751d4be92d83fe9d4bb7bd2cc31792a5f2 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core/rev/2f2d1468bbc5afc9150ffc3f27a59c49c5eb19dd [^]
2016-02-01 19:01guilleaerReview Assigned Tomarvintm => guilleaer
2016-02-01 19:01guilleaerStatusresolved => closed
2016-02-01 19:01guilleaerFixed in Version => RR15Q4.2

Notes
(0083672)
hgbot   
2016-01-28 15:27   
Repository: retail/backports/3.0RR15Q4.2/org.openbravo.retail.posterminal
Changeset: 1ad41ea9ec4660ed5eced0cfc24014cddd12ef8c
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Dec 15 01:01:04 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.retail.posterminal/rev/1ad41ea9ec4660ed5eced0cfc24014cddd12ef8c [^]

Fixes issue 31729, backout of issue 31619: OrderDate should not be transformed to client time because it is a date whithout time

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---
(0083680)
hgbot   
2016-01-28 15:45   
Repository: retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core
Changeset: 86f812751d4be92d83fe9d4bb7bd2cc31792a5f2
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Dec 15 00:04:54 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core/rev/86f812751d4be92d83fe9d4bb7bd2cc31792a5f2 [^]

Fixes issue 31729, backout of issue 31619: hour,minutes and seconds should be zero for dates

---
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
---
(0083682)
hgbot   
2016-01-28 15:45   
Repository: retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core
Changeset: 2f2d1468bbc5afc9150ffc3f27a59c49c5eb19dd
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Dec 15 01:02:23 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.mobile.core/rev/2f2d1468bbc5afc9150ffc3f27a59c49c5eb19dd [^]

Fixes issue 31729, backout of issue 31619: The 'timezoneOffset' is sent to the server and the server correctly handles the incoming date

The problem was that the terminal was sending the date in a format that the server was unable to process, and then, the server date was taken. Also, the timezone offset was not sent to the server and the server could not recreate the correct terminal date.

The solution:
- the terminal sends the date in ISO format and the timezone offset
- the server processes the date and timezone offset and recreates the terminal date
- better checks and log messages have been added

---
M src/org/openbravo/mobile/core/model/HQLPropertyList.java
---