Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031380Retail ModulesWeb POSpublic2015-11-05 17:462015-11-11 09:58
guilleaer 
Retail 
normalmajoralways
closedfixed 
5
 
RR15Q4RR15Q4 
Orekaria
Production - QA Approved
2015-06-25
RR15Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/fc607f588049 [^]
No
0031380: Cashup Date is not taken into account. Instead current date is used
Cashup date is not taken into account by ProcessCashClose because when the value is readed an exception is raised:

        String strCashUpDate = (String) jsonCashup.getString("cashUpDate");
        cashUpDate = (Date) JsonToDataConverter.convertJsonToPropertyValue(PropertyByType.DATETIME,
            ((String) strCashUpDate).subSequence(0, ((String) strCashUpDate).lastIndexOf(".")));

The value of strCashUpDate is 05-11-2015 but the value that we are trying to parse in the next line of code is expecting a different value.

Fortunately this piece of code is located between try/catch and we manage the exception in catch assigning new date to the cashup date.

The main issue will be when a cashup get stucked because an error an it is processed later. In this case the cashup date will not be the real date
1. set the laptop date as 02-nov
2. create an order and make it fail (e.g. remove obposcashupid field from the order)
3. ensure that order is in "errors while importing"
4. do a cashup
5. the cashup will go also to errors while importing.
6. fix laptop date
7. go to error window an fix the order adding de field that we removed
8. process the order
9. process the cashup -> cashup date will be 05-nov(today) instead of 02-nov(date when the cashup was processed
parse the value received from the client side properly.
No tags attached.
blocks defect 0031378 closed marvintm Cashup Date is not taken into account. Instead current date is used 
Issue History
2015-11-05 18:30marvintmTypedefect => backport
2015-11-05 18:30marvintmTarget Version => RR15Q4
2015-11-05 18:36hgbotCheckin
2015-11-05 18:36hgbotNote Added: 0081538
2015-11-05 18:36hgbotStatusscheduled => resolved
2015-11-05 18:36hgbotResolutionopen => fixed
2015-11-05 18:36hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/3e9c055f9ec7958067c7c088d2ed17cc254f4de7 [^]
2015-11-10 16:43hgbotCheckin
2015-11-10 16:43hgbotNote Added: 0081664
2015-11-10 16:43hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/3e9c055f9ec7958067c7c088d2ed17cc254f4de7 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/7d9eebff4858d2c8e607e9318563a44abc70cda8 [^]
2015-11-11 09:58OrekariaReview Assigned To => Orekaria
2015-11-11 09:58OrekariaStatusresolved => closed
2015-11-11 09:58OrekariaFixed in Version => RR15Q4

Notes
(0081538)
hgbot   
2015-11-05 18:36   
Repository: retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal
Changeset: 3e9c055f9ec7958067c7c088d2ed17cc254f4de7
Author: Antonio Moreno Perez <antonio.moreno <at> openbravo.com>
Date: Thu Nov 05 18:36:09 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/3e9c055f9ec7958067c7c088d2ed17cc254f4de7 [^]

Fixed issue 31380. Now the date will be set and sent in the correct format.

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
---
(0081664)
hgbot   
2015-11-10 16:43   
Repository: retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal
Changeset: 7d9eebff4858d2c8e607e9318563a44abc70cda8
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Nov 10 16:42:49 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/7d9eebff4858d2c8e607e9318563a44abc70cda8 [^]

Fixed issue 31380. Now the date will be set and sent in the correct format. - 2nd fix

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
---