Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037085
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-10-17 11:312017-10-24 15:48
ReportermigueldejuanaView Statuspublic 
Assigned Torqueralta 
PrioritynormalResolutionfixedFixed in Version
StatusscheduledFix in branchFixed in SCM revision53a9d26b0f96
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037085: Reverse Payment gives an js error wjen it needs an approval

DescriptionReverse 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.
Steps To Reproduce- 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.
Proposed SolutionReplace 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0100033)
hgbot (developer)
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
---

- Issue History
Date Modified Username Field Change
2017-10-17 11:31 migueldejuana New Issue
2017-10-17 11:31 migueldejuana Assigned To => Retail
2017-10-17 11:31 migueldejuana Triggers an Emergency Pack => No
2017-10-23 18:22 rqueralta Assigned To Retail => rqueralta
2017-10-24 15:48 hgbot Checkin
2017-10-24 15:48 hgbot Note Added: 0100033
2017-10-24 15:48 hgbot Status new => resolved
2017-10-24 15:48 hgbot Resolution open => fixed
2017-10-24 15:48 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/53a9d26b0f969607eae768520ae6c5051174c27c [^]
2017-10-24 15:48 rqueralta Status resolved => scheduled


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker