Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034985Retail ModulesSessionspublic2017-01-17 18:172017-01-26 09:19
guillermogil 
jorge-garcia 
highmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0034985: 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.
depends on backport 0035020RR17Q1 closed jorge-garcia If you have a payment method Cash without Count Cash fails on login 
Issue History
2017-01-17 18:17guillermogilNew Issue
2017-01-17 18:17guillermogilAssigned To => Retail
2017-01-17 18:17guillermogilResolution time => 1486422000
2017-01-17 18:17guillermogilTriggers an Emergency Pack => No
2017-01-17 18:21guillermogilDescription Updatedbug_revision_view_page.php?rev_id=14303#r14303
2017-01-18 11:02guillermogilDescription Updatedbug_revision_view_page.php?rev_id=14316#r14316
2017-01-18 11:02guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14318#r14318
2017-01-18 11:11guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14319#r14319
2017-01-18 12:54jorge-garciaStatusnew => scheduled
2017-01-18 12:54jorge-garciaAssigned ToRetail => jorge-garcia
2017-01-20 11:47jorge-garciaStatusscheduled => acknowledged
2017-01-20 11:47jorge-garciaStatusacknowledged => scheduled
2017-01-20 11:50hgbotCheckin
2017-01-20 11:50hgbotNote Added: 0093756
2017-01-20 11:50hgbotStatusscheduled => resolved
2017-01-20 11:50hgbotResolutionopen => fixed
2017-01-20 11:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4350c41e4516ae528a259cbd04e225b2d08b57d1 [^]
2017-01-25 20:23hgbotCheckin
2017-01-25 20:23hgbotNote Added: 0093830
2017-01-26 09:19marvintmReview Assigned To => marvintm
2017-01-26 09:19marvintmStatusresolved => closed
2017-01-26 09:19marvintmFixed in Version => RR17Q2

Notes
(0093756)
hgbot   
2017-01-20 11:50   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4350c41e4516ae528a259cbd04e225b2d08b57d1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Jan 19 11:32:11 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4350c41e4516ae528a259cbd04e225b2d08b57d1 [^]

Fixed issue 34985: 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
---
(0093830)
hgbot   
2017-01-25 20:23   
Repository: tools/automation/pi-mobile
Changeset: b171c997ec54139ff0b8fac5da85011adf202c4d
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Jan 25 20:23:25 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b171c997ec54139ff0b8fac5da85011adf202c4d [^]

Verifies issue 34985: If you have a payment method Cash without Count Cash fails
on login

Added test I34985_InitCashUpWithoutCache

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/I34985_InitCashUpWithoutCache.java
---