Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026260Retail ModulesWeb POSpublic2014-04-11 17:072014-05-19 16:14
marvintm 
Orekaria 
normalminorhave not tried
closedfixed 
5
 
RR14Q2.1 
migueldejuana
No
0026260: Existing customer addresses are not saved correctly
Existing customer addresses can be edited and saved from the Web POS. However, when this is done, all the extended attributes are not taken into account. Instead, only a couple, hardcoded ones are actually saved.
- Extend the location model in the Web POS with a new attribute.
- Open an existing address in the POS. Modify the value of this new attribute.
- Save it. Realize that the value of this property wasn't saved in the database.
In the CustomerAddrLoader.java class, in the method editBPartnerAddr, there is some logic missing.

At list the following lines should be added:


        Entity baseLocationEntity = ModelProvider.getInstance().getEntity(
            org.openbravo.model.common.geography.Location.class);
        JSONPropertyToEntity.fillBobFromJSON(baseLocationEntity, rootLocation, jsonCustomerAddr);

It should also be verified if the c_Bpartner_location entity should also be updated or not.
No tags attached.
Issue History
2014-04-11 17:07marvintmNew Issue
2014-04-11 17:07marvintmAssigned To => Orekaria
2014-04-11 17:07marvintmTriggers an Emergency Pack => No
2014-05-13 11:48hgbotCheckin
2014-05-13 11:48hgbotNote Added: 0067109
2014-05-13 11:48hgbotStatusnew => resolved
2014-05-13 11:48hgbotResolutionopen => fixed
2014-05-13 11:48hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c [^]
2014-05-13 17:42hgbotCheckin
2014-05-13 17:42hgbotNote Added: 0067116
2014-05-13 17:42hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.unstablenetworks/rev/6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c [^]
2014-05-19 16:14migueldejuanaReview Assigned To => migueldejuana
2014-05-19 16:14migueldejuanaNote Added: 0067265
2014-05-19 16:14migueldejuanaStatusresolved => closed
2014-05-19 16:14migueldejuanaFixed in Version => RR14Q2.1

Notes
(0067109)
hgbot   
2014-05-13 11:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue May 13 11:47:28 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c [^]

Fixed issue 26260: Now, extended address properties are saved

---
M src/org/openbravo/retail/posterminal/CustomerAddrLoader.java
---
(0067116)
hgbot   
2014-05-13 17:42   
Repository: erp/pmods/org.openbravo.retail.posterminal.unstablenetworks
Changeset: 6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue May 13 11:47:28 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.unstablenetworks/rev/6eb37e7d3c1fe371d7917bb3c2af7a3cda048d0c [^]

Fixed issue 26260: Now, extended address properties are saved

---
M src/org/openbravo/retail/posterminal/CustomerAddrLoader.java
---
(0067265)
migueldejuana   
2014-05-19 16:14   
Tested and reviewed in 7e370f973ee7