Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035020Retail ModulesSessionspublic2017-01-17 18:172017-01-26 09:19
guillermogil 
jorge-garcia 
highmajoralways
closedfixed 
5
 
RR17Q1RR17Q1 
marvintm
No
0035020: If you have a payment method Cash without Count Cash fails on login
If you have a payment method Cash without Count Cash fails on login.
The following error raises:
0882da3…_WebPOS.js:32832 Uncaught TypeError: Cannot read property 'set' of undefined
    at Object.OB.UTIL.composeCashupInfo (0882da3…_WebPOS.js:32832)
    at 0882da3…_WebPOS.js:69379
    at processResult (0882da3…_WebPOS.js:4177)
- Do a Cash Up
- Close the Store
- Go to Cash Payment Method and set Count Cash to "N"
- Open the Store on the Backend
- Clear the cache
- Login on WebPOS

The error raises

No tags attached.
blocks defect 0034985 closed jorge-garcia If you have a payment method Cash without Count Cash fails on login 
Issue History
2017-01-20 11:47jorge-garciaTypedefect => backport
2017-01-20 11:47jorge-garciaTarget Version => RR17Q1
2017-01-20 11:55hgbotCheckin
2017-01-20 11:55hgbotNote Added: 0093757
2017-01-20 11:55hgbotStatusscheduled => resolved
2017-01-20 11:55hgbotResolutionopen => fixed
2017-01-20 11:55hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/6093ddc478d3b9829ac66ad76845bc0940f8a37b [^]
2017-01-26 09:19marvintmReview Assigned To => marvintm
2017-01-26 09:19marvintmStatusresolved => closed
2017-01-26 09:19marvintmFixed in Version => RR17Q1

Notes
(0093757)
hgbot   
2017-01-20 11:55   
Repository: retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal
Changeset: 6093ddc478d3b9829ac66ad76845bc0940f8a37b
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 20 11:53:04 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/6093ddc478d3b9829ac66ad76845bc0940f8a37b [^]

Fixed issue 35020: If you have a payment method Cash without Count Cash
fails on login

The solution is to execute sequentially the process of the creation of the
cashUp.

Now the execution of the hooks is done after the cashup is created and the
current cash is calculated.

Remove a callback parameter from initCashUp that overrides the original
callback.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
---