Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029462Retail ModulesWeb POSpublic2015-03-30 18:182015-10-30 12:59
migueldejuana 
marvintm 
normalmajoralways
closedfixed 
50iOS
 
RR16Q1 
guilleaer
No
0029462: 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.
depends on backport 0031269RR15Q4 closed marvintm We get an error in iOS everytime we save an order 
depends on backport 0031270RR15Q3.2 closed marvintm We get an error in iOS everytime we save an order 
Issue History
2015-03-30 18:18migueldejuanaNew Issue
2015-03-30 18:18migueldejuanaAssigned To => Retail
2015-03-30 18:18migueldejuanaTriggers an Emergency Pack => No
2015-03-30 18:18migueldejuanaSeverityminor => major
2015-03-30 18:19migueldejuanaDescription Updatedbug_revision_view_page.php?rev_id=8147#r8147
2015-04-28 16:07plujanDescription Updatedbug_revision_view_page.php?rev_id=8359#r8359
2015-09-29 19:02malsasuaResolution time => 1446505200
2015-10-05 12:26OrekariaAssigned ToRetail => marvintm
2015-10-05 12:27OrekariaStatusnew => scheduled
2015-10-06 19:19marvintmReview Assigned To => marvintm
2015-10-06 19:19marvintmNote Added: 0080848
2015-10-06 19:19marvintmStatusscheduled => closed
2015-10-06 19:19marvintmResolutionopen => unable to reproduce
2015-10-23 13:33malsasuaNote Added: 0081258
2015-10-23 13:33malsasuaStatusclosed => new
2015-10-23 13:33malsasuaResolutionunable to reproduce => open
2015-10-23 15:31OrekariaStatusnew => acknowledged
2015-10-23 15:31OrekariaStatusacknowledged => scheduled
2015-10-27 13:33hgbotCheckin
2015-10-27 13:33hgbotNote Added: 0081346
2015-10-27 13:33hgbotStatusscheduled => resolved
2015-10-27 13:33hgbotResolutionopen => fixed
2015-10-27 13:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2e86768ab6f2905500d1eb5c73a6d0573f4fe7cf [^]
2015-10-27 13:41marvintmStatusresolved => new
2015-10-27 13:41marvintmResolutionfixed => open
2015-10-27 13:42marvintmStatusnew => scheduled
2015-10-27 13:42marvintmStatusscheduled => resolved
2015-10-27 13:42marvintmFixed in Version => RR16Q1
2015-10-27 13:42marvintmResolutionopen => fixed
2015-10-28 15:25marvintmReview Assigned Tomarvintm =>
2015-10-30 12:59guilleaerReview Assigned To => guilleaer
2015-10-30 12:59guilleaerStatusresolved => closed

Notes
(0080848)
marvintm   
2015-10-06 19:19   
This problem cannot be reproduced anymore in recent versions of iOS (iOS 8 and 9)
(0081258)
malsasua   
2015-10-23 13:33   
I have tested RR15Q3.1 with IOS 9 and the same error is returned
(0081346)
hgbot   
2015-10-27 13:33   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2e86768ab6f2905500d1eb5c73a6d0573f4fe7cf
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Oct 27 09:18:42 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2e86768ab6f2905500d1eb5c73a6d0573f4fe7cf [^]

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

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