Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036515Retail ModulesWeb POSpublic2017-07-19 20:292017-10-19 09:39
migueldejuana 
migueldejuana 
normalminoralways
closedfixed 
5
 
RR17Q4 
marvintm
No
0036515: Improve BusinessPartner query performance removing location info from it
Improve BusinessPartner query performance removing location info from it
See description
Performance
has duplicate defect 0037024 closed rqueralta Tax rate not properly recalculated when setting different customer to the ticket 
related to defect 0037542 closed ranjith_qualiantech_com Is impossible to update a customer in hgvol environment 
diff I36515_MobileCore_17Q1.diff (1,655) 2017-08-02 08:49
https://issues.openbravo.com/file_download.php?file_id=10946&type=bug
diff I36515_Posterminal_17Q1.diff (41,813) 2017-08-02 08:49
https://issues.openbravo.com/file_download.php?file_id=10947&type=bug
diff I36515_Returns_17Q1.diff (5,070) 2017-08-02 08:49
https://issues.openbravo.com/file_download.php?file_id=10948&type=bug
diff I36515_PiMobile_17Q1.diff (4,836) 2017-08-02 08:49
https://issues.openbravo.com/file_download.php?file_id=10949&type=bug
Issue History
2017-07-19 20:29migueldejuanaNew Issue
2017-07-19 20:29migueldejuanaAssigned To => migueldejuana
2017-07-19 20:29migueldejuanaTriggers an Emergency Pack => No
2017-07-19 20:34migueldejuanaFile Added: issue36515Giftcards.diff
2017-07-19 20:35migueldejuanaFile Added: issue36515Pimobile.diff
2017-07-19 20:36migueldejuanaFile Added: issue36515Returns.diff
2017-07-19 20:36migueldejuanaFile Added: issue36515Posterminal.diff
2017-07-20 12:40hgbotCheckin
2017-07-20 12:40hgbotNote Added: 0098146
2017-07-20 12:40hgbotStatusnew => resolved
2017-07-20 12:40hgbotResolutionopen => fixed
2017-07-20 12:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/088483d6791da381a56b66d71edc2059de0ba4a1 [^]
2017-07-20 12:40hgbotCheckin
2017-07-20 12:40hgbotNote Added: 0098147
2017-07-20 12:40hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/088483d6791da381a56b66d71edc2059de0ba4a1 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d758d76680f43ce8d34607a5d65cc3cf028c99ff [^]
2017-07-20 12:40hgbotCheckin
2017-07-20 12:40hgbotNote Added: 0098148
2017-07-20 12:40hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d758d76680f43ce8d34607a5d65cc3cf028c99ff [^] => http://code.openbravo.com/tools/automation/pi-mobile/rev/d8cbf9ac2c671d10cb76ccd9d9f07f7b66e1dba5 [^]
2017-07-20 12:40hgbotCheckin
2017-07-20 12:40hgbotNote Added: 0098149
2017-07-20 12:40hgbotFixed in SCM revisionhttp://code.openbravo.com/tools/automation/pi-mobile/rev/d8cbf9ac2c671d10cb76ccd9d9f07f7b66e1dba5 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/b78f80762d40bce7d125a839a900f8e068f8e6cd [^]
2017-07-20 12:43migueldejuanaFile Deleted: issue36515Giftcards.diff
2017-07-20 12:43migueldejuanaFile Deleted: issue36515Pimobile.diff
2017-07-20 12:43migueldejuanaFile Deleted: issue36515Returns.diff
2017-07-20 12:43migueldejuanaFile Deleted: issue36515Posterminal.diff
2017-07-31 14:58hgbotCheckin
2017-07-31 14:58hgbotNote Added: 0098276
2017-07-31 14:58hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/b78f80762d40bce7d125a839a900f8e068f8e6cd [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ac8933ca27260cee2263f1f8b6242d13f63ce570 [^]
2017-08-02 08:48jorge-garciaFile Added: I36515_MobileCore.diff
2017-08-02 08:49jorge-garciaFile Deleted: I36515_MobileCore.diff
2017-08-02 08:49jorge-garciaFile Added: I36515_MobileCore_17Q1.diff
2017-08-02 08:49jorge-garciaFile Added: I36515_Posterminal_17Q1.diff
2017-08-02 08:49jorge-garciaFile Added: I36515_Returns_17Q1.diff
2017-08-02 08:49jorge-garciaFile Added: I36515_PiMobile_17Q1.diff
2017-09-08 14:38marvintmReview Assigned To => marvintm
2017-09-08 14:38marvintmStatusresolved => closed
2017-09-08 14:38marvintmFixed in Version => RR17Q4
2017-10-19 09:39malsasuaTag Attached: Performance
2017-11-06 13:14jorge-garciaRelationship addedhas duplicate 0037024
2018-01-04 14:46ranjith_qualiantech_comRelationship addedrelated to 0037542

Notes
(0098146)
hgbot   
2017-07-20 12:40   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 088483d6791da381a56b66d71edc2059de0ba4a1
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jul 20 12:35:25 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/088483d6791da381a56b66d71edc2059de0ba4a1 [^]

Fixed issue 0036515: Improve BusinessPartner query performance removing location info from it

- Point to bp instead of pointing to bpl which no longer exists

---
M src/org/openbravo/retail/giftcards/master/BusinessPartnerProperties.java
---
(0098147)
hgbot   
2017-07-20 12:40   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d758d76680f43ce8d34607a5d65cc3cf028c99ff
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jul 20 12:29:27 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d758d76680f43ce8d34607a5d65cc3cf028c99ff [^]

Fixed issue 0036515: Improve BusinessPartner query performance removing location info from it

- Saving a customer, Remove location to the check of outdated bp because locId is not always sent and ensure that locId exists to save/edit location.
- Remove from BusinessPartner query all code related to Business Partner Location
- When we need to load a customer from backend because it is not saved in local database, we also add the possibility to load a second address(billing/shipping)
- In datacustomeraddrsave.js, remove setting the address properties because it will be done in setBPandBPLoc
- businesspartner, load the address information that is not coming with bp model anymore and set and order to load it
- Save also the model of billing location to be able to save it in local database if it is not yet
- Remove all properties related to location in Business Partner model
- In setBPandBPLoc, set all location properties in bp object and save locations in local database if needed

---
M src/org/openbravo/retail/posterminal/CustomerLoader.java
M src/org/openbravo/retail/posterminal/master/BusinessPartner.java
M src/org/openbravo/retail/posterminal/master/BusinessPartnerProperties.java
M src/org/openbravo/retail/posterminal/master/LoadedCustomer.java
M web/org.openbravo.retail.posterminal/js/data/datacustomeraddrsave.js
M web/org.openbravo.retail.posterminal/js/model/businesspartner.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customeraddress/components/sharedcomponents.js
---
(0098148)
hgbot   
2017-07-20 12:40   
Repository: tools/automation/pi-mobile
Changeset: d8cbf9ac2c671d10cb76ccd9d9f07f7b66e1dba5
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jul 20 12:13:20 2017 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/d8cbf9ac2c671d10cb76ccd9d9f07f7b66e1dba5 [^]

Fixed issue 0036515: Improve BusinessPartner query performance removing location info from it

- Add an allow error of LogClientLoader to I34968_ReceiptPayOpenTicket because sometimes fails
- Adapt I34968_ReceiptPayOpenTicket to new change done (Retrieve to clientside business partners without a default address)

---
M src-test/org/openbravo/test/mobile/core/utils/AllowedErrorsHelper.java
M src-test/org/openbravo/test/mobile/retail/mobilecore/javascript/MobileCoreAPI.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I31484_ReceiptModifyCustomerAddProduct.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35931_SaveCorrectlyCustomerShipmentAndBillingInfo.java
---
(0098149)
hgbot   
2017-07-20 12:40   
Repository: erp/pmods/org.openbravo.retail.returns
Changeset: b78f80762d40bce7d125a839a900f8e068f8e6cd
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jul 20 12:10:55 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/b78f80762d40bce7d125a839a900f8e068f8e6cd [^]

Fixed issue 0036515: Improve BusinessPartner query performance removing location info from it

- Loading the business partner, load the default bill address and set needed attributes in bp model
- If a bp is not in the local database, we load it from the backend(LoadCustomer.java). If we have different address for billing and shipping, we ask for the second address also.

---
M web/org.openbravo.retail.returns/js/modalReturnLines.js
---
(0098276)
hgbot   
2017-07-31 14:58   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ac8933ca27260cee2263f1f8b6242d13f63ce570
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jul 27 17:07:23 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ac8933ca27260cee2263f1f8b6242d13f63ce570 [^]

Fixed issue 0036515: Improve BusinessPartner query performance removing location info from it

- Do not show bps without any address
- Loading tickets after a reload could cause to load locationBillModel as an object instead of a Backbone model, convert it

---
M web/org.openbravo.retail.posterminal/js/model/businesspartner.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customeraddress/components/sharedcomponents.js
---