Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043023Retail ModulesWeb POSpublic2020-01-28 11:082020-01-31 11:37
kchoperena 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q2 
guilleaer
No
0043023: The loadBPLocations function of BusinessPartner model is not retrieving the last created/used BPLocation
The loadBPLocations is shorting the results using the c_bpartner_location_id. This orderby clause is not ensuring that the result will the last created/used location.

This problem is easy to see when we have the preference 'Enable Remote for Customer' = Y
1.- Config in back-end the preference 'Enable Remote for Customer' = Y
2.- Log into the WebPOS
3.- Create a customer with 5 addresses
4.- Search the customer and select it.

EXPECTED RESULT:
You can see that is not mandatory have the latest created/used address assigned to the ticket.
Change the orderby clause of:

loadBPLocations: function (shipping, billing, callback, bpId) {
No tags attached.
causes defect 0043838 closed ranjith_qualiantech_com Business Partner location masterdata load is failing in WebPOS with a large amount of records 
Issue History
2020-01-28 11:08kchoperenaNew Issue
2020-01-28 11:08kchoperenaAssigned To => Retail
2020-01-28 11:08kchoperenaResolution time => 1581375600
2020-01-28 11:08kchoperenaTriggers an Emergency Pack => No
2020-01-29 07:35ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-01-29 10:56ranjith_qualiantech_comStatusnew => scheduled
2020-01-30 08:39hgbotCheckin
2020-01-30 08:39hgbotNote Added: 0117342
2020-01-30 08:39hgbotStatusscheduled => resolved
2020-01-30 08:39hgbotResolutionopen => fixed
2020-01-30 08:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c8581f1f793bc6812092f8d302693a332453a9db [^]
2020-01-31 11:37guilleaerReview Assigned To => guilleaer
2020-01-31 11:37guilleaerStatusresolved => closed
2020-01-31 11:37guilleaerFixed in Version => RR20Q2
2020-04-24 20:41dmitry_mezentsevRelationship addedcauses 0043838

Notes
(0117342)
hgbot   
2020-01-30 08:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c8581f1f793bc6812092f8d302693a332453a9db
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 30 13:09:30 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c8581f1f793bc6812092f8d302693a332453a9db [^]

Fixed issue 43023 : Customer Location should be listed by last creationDate

---
M src/org/openbravo/retail/posterminal/master/BPLocation.java
M src/org/openbravo/retail/posterminal/master/BPLocationProperties.java
M web/org.openbravo.retail.posterminal/js/model/bplocation.js
M web/org.openbravo.retail.posterminal/js/model/businesspartner.js
---