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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0036553
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2017-07-31 17:572018-05-08 15:56
ReportermigueldejuanaView Statuspublic 
Assigned Torqueralta 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision315b3c2766a8
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

0036553: Loading a receipt with a no active bp with different locations fails

DescriptionSee steps.
Steps To Reproduce- Login
- Select Stephane Cluster (by default, Invoice address will be different to shipping address)
- Add a product
- Pay the order
- Go to ERP and uncheck active field for Stephane Cluster
- Logout and login in Web POS
- Select Menu option "Receipts"
- Select created order and load it
- ERROR! javascript error:
 
d56b9c5….js:3035 TypeError: Cannot read property 'get' of undefined
    at locationForBpartner (d56b9c5….js:30349)
    at d56b9c5….js:30406
    at processResult (d56b9c5….js:4371); line: Object.OB.UTIL.showError (http://localhost:8080/openbravo/web/js/gen/d56b9c5f60fb75a5e802a1ff97567747.js:11752:6 [^]) (*,+)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0103703)
hgbot (developer)
2018-04-05 22:40

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 315b3c2766a86d29c775967d152fabf8bf3c2806
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Apr 02 16:52:18 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/315b3c2766a86d29c775967d152fabf8bf3c2806 [^]

Fixed issue 36553: Loading a receipt with a no active bp with different
locations fails

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0104285)
marvintm (manager)
2018-05-04 15:16

Solution seems not to be fully correct. I followed the steps to reproduce, including creating a ticket with different invoicing and shipping locations, and then, when I disabled the customer and reloaded the ticket, it did no longer fail, but instead, the ticket I see only displays one address, and in the backend it clearly has two different addresses.

Besides this, it's not nice to save the location as a global variable:

OB.UTIL.bpLoc = bpLoc

because it could lead to problems later on, and creates a global reference which adds a potential memory leak issue. Instead, the location should be passed as a parameter to the function or event.
(0104327)
hgbot (developer)
2018-05-08 15:56

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 965527c372e92188e00533865d421cbdaa4ed656
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Sat May 05 08:52:46 2018 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/965527c372e92188e00533865d421cbdaa4ed656 [^]

Related to issue 36553: Loading a receipt with a no active bp with different
locations fails

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

- Issue History
Date Modified Username Field Change
2017-07-31 17:57 migueldejuana New Issue
2017-07-31 17:57 migueldejuana Assigned To => Retail
2017-07-31 17:57 migueldejuana Triggers an Emergency Pack => No
2018-04-02 18:27 rqueralta Assigned To Retail => rqueralta
2018-04-02 18:27 rqueralta Status new => scheduled
2018-04-05 22:40 hgbot Checkin
2018-04-05 22:40 hgbot Note Added: 0103703
2018-04-05 22:40 hgbot Status scheduled => resolved
2018-04-05 22:40 hgbot Resolution open => fixed
2018-04-05 22:40 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/315b3c2766a86d29c775967d152fabf8bf3c2806 [^]
2018-05-04 15:16 marvintm Note Added: 0104285
2018-05-04 15:16 marvintm Status resolved => new
2018-05-04 15:16 marvintm Resolution fixed => open
2018-05-08 15:56 hgbot Checkin
2018-05-08 15:56 hgbot Note Added: 0104327


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker