Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035457Retail ModulesCash uppublic2017-03-09 07:392017-03-24 11:52
prakashmurugesan88 
mario_castello 
urgentmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0035457: [SER-QA 2533] Wrong Cashup date if the server and browser time zones are different
Consider following scenario in live builds and user in India, where the server and the browser have different time zone.

In live builds user from India logged in for the first time and opened till.
In back end following is the cashup date
        Local time : 09-03-2017 11:43:29
    cashupdate : 09-03-2017 11:43:29
Refer image OpenedTill.png.
Same as local time and it is correct.

Immediately the user did cashup.
In back end following is the cashup date,
        Local time : 09-03-2017 11:44:57
    cashupdate : 09-03-2017 16:14:57
 
There is time difference of +4:30hrs.
This is nothing but time zone difference between India and Live Builds.
Refer image AfterCashup.png.
Access live builds from a browser that has different time zone than live builds.

Login to webpos.
Do cashup.
Check cashup date in backend.
Compare with local time.
It will not be the same as local time.
Cashup date will be past/future based on time zone difference with live builds.
SER-QA
png OpenedTill.png (43,189) 2017-03-09 07:39
https://issues.openbravo.com/file_download.php?file_id=10541&type=bug
png

png AfterCashup.png (46,220) 2017-03-09 07:40
https://issues.openbravo.com/file_download.php?file_id=10542&type=bug
png
Issue History
2017-03-09 07:39prakashmurugesan88New Issue
2017-03-09 07:39prakashmurugesan88Assigned To => Retail
2017-03-09 07:39prakashmurugesan88File Added: OpenedTill.png
2017-03-09 07:39prakashmurugesan88Triggers an Emergency Pack => No
2017-03-09 07:40prakashmurugesan88File Added: AfterCashup.png
2017-03-09 07:40prakashmurugesan88SummaryWrong Cashup date if the server and browser time zones different => Wrong Cashup date if the server and browser time zones are different
2017-03-09 07:42prakashmurugesan88Description Updatedbug_revision_view_page.php?rev_id=14750#r14750
2017-03-09 09:13adrianromeroResolution time => 1490223600
2017-03-09 09:13adrianromeroSummaryWrong Cashup date if the server and browser time zones are different => [SER-QA 2533] Wrong Cashup date if the server and browser time zones are different
2017-03-09 09:13adrianromeroTag Attached: SER-QA
2017-03-09 09:14adrianromeroPrioritynormal => urgent
2017-03-10 21:40mario_castelloAssigned ToRetail => mario_castello
2017-03-10 21:40mario_castelloStatusnew => acknowledged
2017-03-10 21:40mario_castelloStatusacknowledged => scheduled
2017-03-22 15:58hgbotCheckin
2017-03-22 15:58hgbotNote Added: 0095509
2017-03-22 16:06hgbotCheckin
2017-03-22 16:06hgbotNote Added: 0095510
2017-03-22 16:06hgbotStatusscheduled => resolved
2017-03-22 16:06hgbotResolutionopen => fixed
2017-03-22 16:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/82d0fee6b2a2a891383ccda55440652d741446c8 [^]
2017-03-24 11:52marvintmReview Assigned To => marvintm
2017-03-24 11:52marvintmStatusresolved => closed
2017-03-24 11:52marvintmFixed in Version => RR17Q2

Notes
(0095509)
hgbot   
2017-03-22 15:58   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: de3a8cbcf49bd203eadbe381eddcb55e8b9c17e8
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Fri Mar 17 11:03:25 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/de3a8cbcf49bd203eadbe381eddcb55e8b9c17e8 [^]

Related to issue 35457: [SER-QA 2533] Wrong Cashup date if the server and browser time zones are different

- Create new function calculateServerDatetime to get the Server DateTime based in the client DateTime

---
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
---
(0095510)
hgbot   
2017-03-22 16:06   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 82d0fee6b2a2a891383ccda55440652d741446c8
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Fri Mar 17 11:03:50 2017 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/82d0fee6b2a2a891383ccda55440652d741446c8 [^]

Fixed issue 35457: [SER-QA 2533] Wrong Cashup date if the server and browser time zones are different

- Call the function calculateServerDatetime to get the Server DateTime

---
M src/org/openbravo/retail/posterminal/ProcessCashClose.java
---