Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031325Retail ModulesWeb POSpublic2015-11-02 16:142015-12-04 12:41
guilleaer 
guilleaer 
normalmajoralways
closedfixed 
5
 
RR15Q3.3RR15Q3.3 
marvintm
No
0031325: Web POS crashes when a reload is done having loaded orders using "paid open tickets" functionality
Web POS crashes when a reload is done having loaded orders using "paid open tickets" functionality
1. Create a layaway and save it without any payment
2. Create a layaway and save it without any payment
3. Open Menu
4. Select "pay open tickets"
5. In the popup select the layaways created in steps 1 and 2
6. press done and layaways will be ready to be paid
7. press f5 or reload
8. When the Web POS is loading an error is shown

OB.Dal: a success callback threw an exception; "function (){if(callback){callback();}}";
TypeError: Cannot read property 'isNegative' of undefined
    at Object.enyo.kind.checkValidCashOverpayment (http://localhost:8080/openbravo/web/js/gen/2b880881f09e85a11e5484f9990c00dc_WebPOS.js:1461:17 [^])
    at Object.enyo.kind.checkValidPayments (http://localhost:8080/openbravo/web/js/gen/2b880881f09e85a11e5484f9990c00dc_WebPOS.js:1462:575 [^])
    at Object.enyo.kind.buttonStatusChanged (http://localhost:8080/openbravo/web/js/gen/2b880881f09e85a11e5484f9990c00dc_WebPOS.js:1433:6 [^])

The only way to reload the app is clearing the cache
No tags attached.
blocks defect 0031323 closed guilleaer Web POS crashes when a reload is done having loaded orders using "paid open tickets" functionality 
diff issue31323.diff (849) 2015-11-02 16:44
https://issues.openbravo.com/file_download.php?file_id=8676&type=bug
Issue History
2015-11-02 16:16guilleaerTypedefect => backport
2015-11-02 16:16guilleaerTarget Version => RR15Q3.3
2015-11-02 16:44guilleaerFile Added: issue31323.diff
2015-12-02 14:30OrekariaAssigned ToRetail => guilleaer
2015-12-02 18:43hgbotCheckin
2015-12-02 18:43hgbotNote Added: 0082550
2015-12-02 18:43hgbotStatusscheduled => resolved
2015-12-02 18:43hgbotResolutionopen => fixed
2015-12-02 18:43hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q3.3/org.openbravo.retail.posterminal/rev/698f1830f625a27a6ce37ea86c819300a5c0d3b8 [^]
2015-12-03 18:02guilleaerReview Assigned To => Orekaria
2015-12-04 12:41marvintmReview Assigned ToOrekaria => marvintm
2015-12-04 12:41marvintmStatusresolved => closed
2015-12-04 12:41marvintmFixed in Version => RR15Q3.3

Notes
(0082550)
hgbot   
2015-12-02 18:43   
Repository: retail/backports/3.0RR15Q3.3/org.openbravo.retail.posterminal
Changeset: 698f1830f625a27a6ce37ea86c819300a5c0d3b8
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Wed Dec 02 17:59:19 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q3.3/org.openbravo.retail.posterminal/rev/698f1830f625a27a6ce37ea86c819300a5c0d3b8 [^]

Fixed issue 31325: Don't check payments if there is not information about payments

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---