Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029446Retail ModulesWeb POSpublic2015-03-27 14:052015-12-07 09:48
aaroncalero 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
RR15Q1.1 
RR16Q1RR16Q1 
guilleaer
No
0029446: If the default BPLoc of a store doesn't match the default Loc of the BP, the Location info in a ticket is corrupt
If the default Business Partner Location defined in the Organization window does not match the default Location of the business partner (the location with the "highest" ID) the information of the ticket is corrupted.
The location ID and the location name stored on the bp attribute of the receipt belong to the default BPLoc of the store, while the postal code, city name and the country belong to the default address of the business partner
On the backend, go to Organization window and open a store.
Navigate to the default business partner.
Once in the Business Partner window, add a new location to that bp. Verify in the database that the ID of the new location is higher that the default address. If not, add another location.
Go to the WebPOS and log in.
Open the browser console and execute the following:
OB.MobileApp.model.receipt.get('bp').attributes;
Verify that locId and locName belong to the default location defined in Organization.
Verify that cityName, countryName and postalCode belong to the location of the business partner.
Proposed Solution 1:
When the information of the default location of the store is loaded to the bp object, it should load all attributes of the location, not only its name and ID
No tags attached.
related to defect 0029375 closed mario_castello Business partner information is not updated in the model when you change the address 
has duplicate defect 0031552 closed ranjith_qualiantech_com When the default partner have more than one direction, the ticket is printed with the last added direction 
Issue History
2015-03-27 14:05aaroncaleroNew Issue
2015-03-27 14:05aaroncaleroAssigned To => Retail
2015-03-27 14:05aaroncaleroTriggers an Emergency Pack => No
2015-03-27 14:06aaroncaleroRelationship addedrelated to 0029375
2015-06-15 18:11marvintmTarget VersionRR15Q3 => RR15Q4
2015-09-29 14:28OrekariaTarget VersionRR15Q4 => RR16Q1
2015-11-19 11:21ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2015-11-19 11:21ranjith_qualiantech_comStatusnew => scheduled
2015-11-24 11:02OrekariaRelationship addedhas duplicate 0031552
2015-11-27 10:37hgbotCheckin
2015-11-27 10:37hgbotNote Added: 0082405
2015-11-27 10:37hgbotStatusscheduled => resolved
2015-11-27 10:37hgbotResolutionopen => fixed
2015-11-27 10:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7c4ac4bbd7bf3c67a04705d5f3026055c6456a13 [^]
2015-11-27 10:37hgbotCheckin
2015-11-27 10:37hgbotNote Added: 0082407
2015-12-07 09:48guilleaerReview Assigned To => guilleaer
2015-12-07 09:48guilleaerStatusresolved => closed
2015-12-07 09:48guilleaerFixed in Version => RR16Q1

Notes
(0082405)
hgbot   
2015-11-27 10:37   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7c4ac4bbd7bf3c67a04705d5f3026055c6456a13
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Fri Nov 27 15:05:11 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7c4ac4bbd7bf3c67a04705d5f3026055c6456a13 [^]

Fixes issue 29446: Loading Default Location attributes to Receipt Business Partner Object

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0082407)
hgbot   
2015-11-27 10:37   
Repository: tools/automation/pi-mobile
Changeset: 92fd6e3f5ac90e30fcdc94b861d13c653df5f2c9
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Fri Nov 27 15:05:17 2015 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/92fd6e3f5ac90e30fcdc94b861d13c653df5f2c9 [^]

Verifies issue 29446: Added automated test 'I29446_VerifyBPDefaultLocationAttributes'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I29446_VerifyBPDefaultLocationAttributes.java
---