Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031270Retail ModulesWeb POSpublic2015-03-30 18:182015-11-02 15:50
migueldejuana 
marvintm 
normalmajoralways
closedfixed 
50iOS
 
RR15Q3.2RR15Q3.2 
guilleaer
No
0031270: We get an error in iOS everytime we save an order
Using an iOS device we get an error everytime we save an order:

posterminal.main.js: RangeError: Invalid Date; line: [URL]/openbravo/web/js/gen/ed74a30d49a83f633f6a254e6ea14a05_WebPOS.js:771; stackTrace:


The line of the code where this error is launched is:

undoCopy = this.get('undo');
this.unset('undo');
this.set('json', JSON.stringify(this.toJSON()));
if (!OB.MobileApp.model.get('preventOrderSave')) {
    OB.Dal.save(this, function() {}, function() {
        OB.error(arguments);
    });
}

We get an error but it does not affect to the application.
- Login in a iOS device
- Create and order and save it
- See javascript error in the console
No tags attached.
blocks defect 0029462 closed marvintm We get an error in iOS everytime we save an order 
Issue History
2015-10-27 13:42marvintmTypedefect => backport
2015-10-27 13:42marvintmTarget Version => RR15Q3.2
2015-10-30 13:00hgbotCheckin
2015-10-30 13:00hgbotNote Added: 0081402
2015-10-30 13:00hgbotStatusscheduled => resolved
2015-10-30 13:00hgbotResolutionopen => fixed
2015-10-30 13:00hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2e86768ab6f2905500d1eb5c73a6d0573f4fe7cf [^] => http://code.openbravo.com/retail/backports/3.0RR15Q3.2/org.openbravo.retail.posterminal/rev/002f130470261eaa185e345d132d1ed58def7d1c [^]
2015-11-02 15:50guilleaerReview Assigned Tomarvintm => guilleaer
2015-11-02 15:50guilleaerStatusresolved => closed
2015-11-02 15:50guilleaerFixed in Version => RR15Q3.2

Notes
(0081402)
hgbot   
2015-10-30 13:00   
Repository: retail/backports/3.0RR15Q3.2/org.openbravo.retail.posterminal
Changeset: 002f130470261eaa185e345d132d1ed58def7d1c
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Fri Oct 30 13:00:20 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q3.2/org.openbravo.retail.posterminal/rev/002f130470261eaa185e345d132d1ed58def7d1c [^]

Fixed issue 31270. Now the cashup creationDate will be formated to ISO when being loaded from the backend.

---
M src/org/openbravo/retail/posterminal/master/Cashup.java
---