Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031206Retail ModulesWeb POSpublic2015-10-21 16:352015-11-13 11:40
migueldejuana 
migueldejuana 
normalmajoralways
closedfixed 
5
 
RR16Q1 
mtaal
No
0031206: Creating and assigning a new bp, fails in the second try and onwards
When we create a new bp, we can assign it to the order. We are passing the new bp as parameter to assign it to order bp. What is wrong? We are using a reference, no a new object, so if we change sent customer, we also change order bp. It happens when we create an bp, so the next time we create an order, we are changing customer passed as parameter and therefore order bp.

In web pos, the second time we create and assign a new bp, it is not assigned to the order. In case of remote customers, we get a javascript error.
- Login
- Open bp modal
- New Customer
- Fill info and assign the customer to the order
- Open bp modal
- New Customer
- Fill info and assign the customer to the order
. ERROR: The bp is not assigned
No tags attached.
depends on backport 0031463RR15Q4 closed migueldejuana Creating and assigning a new bp, fails in the second try and onwards 
Issue History
2015-10-21 16:35migueldejuanaNew Issue
2015-10-21 16:35migueldejuanaAssigned To => migueldejuana
2015-10-21 16:35migueldejuanaTriggers an Emergency Pack => No
2015-10-21 16:35migueldejuanaReview Assigned To => mtaal
2015-10-22 11:03hgbotCheckin
2015-10-22 11:03hgbotNote Added: 0081194
2015-10-22 11:03hgbotStatusnew => resolved
2015-10-22 11:03hgbotResolutionopen => fixed
2015-10-22 11:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b1d98e5387e9e9a21a1baa041fc0f96e539d59e8 [^]
2015-10-25 20:13mtaalNote Added: 0081283
2015-10-25 20:13mtaalNote Added: 0081284
2015-10-25 20:13mtaalStatusresolved => closed
2015-10-25 20:13mtaalFixed in Version => RR16Q1
2015-10-26 18:39migueldejuanaNote Added: 0081322
2015-10-26 18:39migueldejuanaStatusclosed => new
2015-10-26 18:39migueldejuanaResolutionfixed => open
2015-10-26 18:39migueldejuanaFixed in VersionRR16Q1 =>
2015-10-27 11:11hgbotCheckin
2015-10-27 11:11hgbotNote Added: 0081341
2015-10-27 11:11hgbotStatusnew => resolved
2015-10-27 11:11hgbotResolutionopen => fixed
2015-10-27 11:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b1d98e5387e9e9a21a1baa041fc0f96e539d59e8 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5ae73248f1982af74bc89d6688ff006712a621f6 [^]
2015-11-08 20:27mtaalNote Added: 0081590
2015-11-08 20:27mtaalStatusresolved => closed
2015-11-08 20:27mtaalFixed in Version => RR16Q1
2015-11-13 11:40OrekariaStatusclosed => new
2015-11-13 11:40OrekariaResolutionfixed => open
2015-11-13 11:40OrekariaFixed in VersionRR16Q1 =>
2015-11-13 11:40OrekariaStatusnew => scheduled
2015-11-13 11:40OrekariaStatusscheduled => resolved
2015-11-13 11:40OrekariaFixed in Version => RR16Q1
2015-11-13 11:40OrekariaResolutionopen => fixed
2015-11-13 11:40OrekariaStatusresolved => closed

Notes
(0081194)
hgbot   
2015-10-22 11:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b1d98e5387e9e9a21a1baa041fc0f96e539d59e8
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Oct 21 16:36:49 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b1d98e5387e9e9a21a1baa041fc0f96e539d59e8 [^]

Fixed issue 0031206: Creating and assigning a new bp, fails in the second try and onwards

We are passing the new bp as parameter to assign it to order bp. What is wrong? We are using a reference, no a new object, so if we change sent customer, we also change order bp

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customers/components/sharedcomponents.js
---
(0081283)
mtaal   
2015-10-25 20:13   
Adapted automated test, accidentally pushed to wrong ticket
http://code.openbravo.com/tools/automation/pi-mobile/rev/bdaf73752ec887af1f8d4bea1ea5fc7883e7b714 [^]
(0081284)
mtaal   
2015-10-25 20:13   
Reviewed
(0081322)
migueldejuana   
2015-10-26 18:39   
It also happens in Customer Adress.
(0081341)
hgbot   
2015-10-27 11:11   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 5ae73248f1982af74bc89d6688ff006712a621f6
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Oct 26 18:38:12 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5ae73248f1982af74bc89d6688ff006712a621f6 [^]

Fixed issue 0031206: Creating and assigning a new bp, fails in the second try and onwards

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customeraddress/components/sharedcomponents.js
---
(0081590)
mtaal   
2015-11-08 20:27   
Reviewed and tested