Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031324Retail ModulesWeb POSpublic2015-11-02 16:142016-01-13 11:20
guilleaer 
Retail 
normalmajoralways
closedfixed 
5
 
RR15Q4RR15Q4 
Orekaria
No
0031324: 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:45
https://issues.openbravo.com/file_download.php?file_id=8677&type=bug
Issue History
2015-11-02 16:16guilleaerTypedefect => backport
2015-11-02 16:16guilleaerTarget Version => RR15Q4
2015-11-02 16:45guilleaerFile Added: issue31323.diff
2015-11-09 16:23OrekariaStatusscheduled => acknowledged
2015-11-10 17:19hgbotCheckin
2015-11-10 17:19hgbotNote Added: 0081669
2015-11-10 17:19hgbotStatusacknowledged => resolved
2015-11-10 17:19hgbotResolutionopen => fixed
2015-11-10 17:19hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/1dd451f752f5b0d3521eff3c8d719cf29d9c8fff [^]
2015-11-11 09:55OrekariaReview Assigned To => Orekaria
2015-11-11 09:55OrekariaStatusresolved => closed
2015-11-11 09:55OrekariaFixed in Version => RR15Q4
2016-01-13 11:20hgbotCheckin
2016-01-13 11:20hgbotNote Added: 0083228

Notes
(0081669)
hgbot   
2015-11-10 17:19   
Repository: retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal
Changeset: 1dd451f752f5b0d3521eff3c8d719cf29d9c8fff
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Nov 10 17:18:16 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q4/org.openbravo.retail.posterminal/rev/1dd451f752f5b0d3521eff3c8d719cf29d9c8fff [^]

fixed issue 31324: : Don't check payments if there are not payments to be checked

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0083228)
hgbot   
2016-01-13 11:20   
Repository: tools/automation/pi-mobile
Changeset: a05157a52a42d05f4b4bebcc7830de6b3a54876c
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Jan 12 13:05:10 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/a05157a52a42d05f4b4bebcc7830de6b3a54876c [^]

Verifies issue 31324: Web POS crashes when a reload is done having loaded
orders using "paid open tickets" functionality

Added test I31324_POSCrashesAfterReload

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31324_POSCrashesAfterReload.java
---