Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031269Retail ModulesWeb POSpublic2015-03-30 18:182015-11-11 18:14
migueldejuana 
marvintm 
normalmajoralways
closedfixed 
50iOS
 
RR15Q4RR15Q4 
marvintm
No
0031269: 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 => RR15Q4
2015-11-11 10:43hgbotCheckin
2015-11-11 10:43hgbotNote Added: 0081684
2015-11-11 10:43hgbotStatusscheduled => resolved
2015-11-11 10:43hgbotResolutionopen => fixed
2015-11-11 10:43hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2e86768ab6f2905500d1eb5c73a6d0573f4fe7cf [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/8d651034541677828dce95a601dbefd063eaf590 [^]
2015-11-11 18:14marvintmStatusresolved => closed
2015-11-11 18:14marvintmFixed in Version => RR15Q4

Notes
(0081684)
hgbot   
2015-11-11 10:43   
Repository: retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal
Changeset: 8d651034541677828dce95a601dbefd063eaf590
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Oct 27 09:18:42 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/8d651034541677828dce95a601dbefd063eaf590 [^]

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

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