Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028768Retail ModulesWeb POSpublic2015-01-26 14:492015-01-29 17:56
mtaal 
migueldejuana 
urgentmajorhave not tried
closedfixed 
5
 
RR15Q1RR15Q1 
marvintm
Pre packaging ( pi )
2014-11-07
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/195fc620eeb2fcb3b44ba1bb1540ea43ecabe330 [^]
No
0028768: Cashup date is wrong, it is set to the cashup creation date and time and not the date/time when the cashup is finally done
See the attached screenshot. The cashup date/time is equal to the creation time of the cashup, the time the till/session started. This is however not equal to the date/time the cashup was finally done/completed.

See the screenshot, the first ticket of this cashup was done on the 21st of Jan, the cashup was finally done on te 26th, the cashup date/time is wrong.

- start a fresh cashup in the client
- create some tickets
- wait a few minutes
- do a cashup
- check in the backend that the cashup has a cashup date/time equal to the cashup creation time and not equal to the time the cashup was done
Set the cashup date/time equal to the time the cashup was finalized on the client. (note should be the client side time, not the server side creation/update time)

Check the causing commit:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/195fc620eeb2fcb3b44ba1bb1540ea43ecabe330#l14.35 [^]

this commit sets the cashup date at the time the cashup record is created.

While the previous version set the cashup date/time at the time the cashup report was shown:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/195fc620eeb2fcb3b44ba1bb1540ea43ecabe330#l19.200 [^]

The latter approach is correct.
No tags attached.
png Selection_096.png (84,337) 2015-01-26 14:49
https://issues.openbravo.com/file_download.php?file_id=7740&type=bug
png
Issue History
2015-01-26 14:49mtaalNew Issue
2015-01-26 14:49mtaalAssigned To => migueldejuana
2015-01-26 14:49mtaalFile Added: Selection_096.png
2015-01-26 14:49mtaalRegression level => Pre packaging ( pi )
2015-01-26 14:49mtaalRegression date => 2014-11-07
2015-01-26 14:49mtaalRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/195fc620eeb2fcb3b44ba1bb1540ea43ecabe330 [^]
2015-01-26 14:49mtaalTriggers an Emergency Pack => No
2015-01-26 15:16mtaalNote Added: 0073781
2015-01-28 10:27hgbotCheckin
2015-01-28 10:27hgbotNote Added: 0073851
2015-01-28 10:27hgbotStatusnew => resolved
2015-01-28 10:27hgbotResolutionopen => fixed
2015-01-28 10:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/025fcecf94460e0dd9781cb3f1d6b1a1c8d821ae [^]
2015-01-29 17:56marvintmReview Assigned To => marvintm
2015-01-29 17:56marvintmStatusresolved => closed
2015-01-29 17:56marvintmFixed in Version => RR15Q1

Notes
(0073781)
mtaal   
2015-01-26 15:16   
Probably the fix is to set the current date/time at this line:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/74be63e9a638/web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js#l593 [^]

Note that other code uses the toISOString, check if this works here to:
(new Date()).toISOString()
(0073851)
hgbot   
2015-01-28 10:27   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 025fcecf94460e0dd9781cb3f1d6b1a1c8d821ae
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Jan 28 10:27:09 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/025fcecf94460e0dd9781cb3f1d6b1a1c8d821ae [^]

Fixed issue 0028768: Cashup date is wrong, it is set to the cashup creation date and time and not the date/time when the cashup is finally done
Update cashup date every time we update cashup info

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