Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037085Retail ModulesWeb POSpublic2017-10-17 11:312017-10-24 15:48
migueldejuana 
rqueralta 
normalmajoralways
scheduledfixed 
5
 
 
No
0037085: Reverse Payment gives an js error wjen it needs an approval
Reverse Payment gives an js error. The problem is that we are using " OB.MobileApp.view.$.containerWindow.$.pointOfSale" and if we navigate this component could be undefined because a " OB.MobileApp.view.$.containerWindow.$.pointOfSale2" component will be created.
- Login Web POS
- Create a Layaway with 10€ payment
- Load this layaway
- Ensure that OB.MobileApp.view.$.containerWindow.$.pointOfSale has value
- Navigate to Cashup partial
- Go back to pointofsale window
- Ensure that OB.MobileApp.view.$.containerWindow.$.pointOfSale is undefined
- Go to payments of the layaway and press on the arrow of the payment (Ensure before that the approval is required: (usedPaymentMethod.availableReverseDelay === null || (currentDate.getTime() - usedPaymentMethod.availableReverseDelay * 86400000) <= (new Date(payment.get('paymentDate')).getTime())) === false)
- Error: The icon shows Loading image continuosly and we get js error.
Replace in the code all references to:

OB.MobileApp.view.$.containerWindow.$.pointOfSale

by:

OB.MobileApp.view.$.containerWindow.getRoot()

There are at least 2 lines in the code to be replaced.
No tags attached.
Issue History
2017-10-17 11:31migueldejuanaNew Issue
2017-10-17 11:31migueldejuanaAssigned To => Retail
2017-10-17 11:31migueldejuanaTriggers an Emergency Pack => No
2017-10-23 18:22rqueraltaAssigned ToRetail => rqueralta
2017-10-24 15:48hgbotCheckin
2017-10-24 15:48hgbotNote Added: 0100033
2017-10-24 15:48hgbotStatusnew => resolved
2017-10-24 15:48hgbotResolutionopen => fixed
2017-10-24 15:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/53a9d26b0f969607eae768520ae6c5051174c27c [^]
2017-10-24 15:48rqueraltaStatusresolved => scheduled

Notes
(0100033)
hgbot   
2017-10-24 15:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 53a9d26b0f969607eae768520ae6c5051174c27c
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Oct 23 14:02:25 2017 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/53a9d26b0f969607eae768520ae6c5051174c27c [^]

Fixed issue 37085: Reverse Payment gives an js error wjen it needs an approval

---
M web/org.openbravo.retail.posterminal/js/components/businesspartner_selector.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---