Openbravo Issue Tracking System - Retail Modules
View Issue Details
0024161Retail ModulesWeb POSpublic2013-06-21 13:292013-07-24 17:30
adrianromero 
marvintm 
normalmajorhave not tried
closedfixed 
5
 
RMP25RMP24 
migueldejuana
No
0024161: Web POS does not use the right default customer
If the hierarchy of organizations has for example two organizations: Org1 and Org2 where Org2 is the son organization of Org1. And both organizations have defined a default customer in the Retail configuration section: Customer1 for Org1 and Customer2 for Org2. If we set up a POS Terminal for Org2, the default customer displayed when log into this terminal is Customer1.

This is wrong, the default customer must be Customer 2
In description
Regression
Issue History
2013-06-21 13:29adrianromeroNew Issue
2013-06-21 13:29adrianromeroAssigned To => marvintm
2013-06-21 13:52adrianromeroNote Added: 0059622
2013-06-21 13:52adrianromeroTag Attached: Regression
2013-06-27 19:31marvintmNote Added: 0059717
2013-06-27 19:37hgbotCheckin
2013-06-27 19:37hgbotNote Added: 0059718
2013-06-27 19:37hgbotStatusnew => resolved
2013-06-27 19:37hgbotResolutionopen => fixed
2013-06-27 19:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b1881b8d3cc5172b3a0baf4db95024ea55cdb883 [^]
2013-06-28 09:38migueldejuanaReview Assigned To => migueldejuana
2013-06-28 09:38migueldejuanaNote Added: 0059719
2013-06-28 09:38migueldejuanaStatusresolved => closed
2013-06-28 09:38migueldejuanaFixed in Version => RMP24
2013-06-28 10:32hgbotCheckin
2013-06-28 10:32hgbotNote Added: 0059765
2013-06-28 10:32hgbotStatusclosed => resolved
2013-06-28 10:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b1881b8d3cc5172b3a0baf4db95024ea55cdb883 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.multiorder/rev/b1881b8d3cc5172b3a0baf4db95024ea55cdb883 [^]
2013-07-02 08:03hgbotCheckin
2013-07-02 08:03hgbotNote Added: 0059800
2013-07-02 08:03hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.multiorder/rev/b1881b8d3cc5172b3a0baf4db95024ea55cdb883 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/db117a1f5bf342824fd5539e92578fbdce3238ca [^]
2013-07-04 16:40hgbotCheckin
2013-07-04 16:40hgbotNote Added: 0059858
2013-07-04 16:40hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/db117a1f5bf342824fd5539e92578fbdce3238ca [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.multiorder/rev/db117a1f5bf342824fd5539e92578fbdce3238ca [^]
2013-07-11 09:50hgbotCheckin
2013-07-11 09:50hgbotNote Added: 0059945
2013-07-11 09:50hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.multiorder/rev/db117a1f5bf342824fd5539e92578fbdce3238ca [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7565ac4130ecf100998f78dd2e6949afd2ae543b [^]
2013-07-11 10:54priyamNote Added: 0059948
2013-07-11 10:54priyamStatusresolved => closed
2013-07-24 13:40hgbotCheckin
2013-07-24 13:40hgbotNote Added: 0060231
2013-07-24 13:40hgbotStatusclosed => resolved
2013-07-24 13:40hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7565ac4130ecf100998f78dd2e6949afd2ae543b [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-col/rev/7565ac4130ecf100998f78dd2e6949afd2ae543b [^]
2013-07-24 17:30guilleaerNote Added: 0060276
2013-07-24 17:30guilleaerStatusresolved => closed

Notes
(0059622)
adrianromero   
2013-06-21 13:52   
This issue seems to be a regression introduced in RMP22.
(0059717)
marvintm   
2013-06-27 19:31   
It is indeed a regression introduced in RMP22. However, the problem doesn't happen exactly as it is described in the issue.

For the problem to happen, the following needs to be true:
- There is a business partner defined as customer in an organization in the natural tree of the Store of the POS terminal.
- This business partner needs to have a business partner location defined.
- This business partner doesn't have a contact.
- The name of this business partner comes alphabetically before the name of the selected anonymous customer.

In this case, this second business partner will be selected for new orders instead of the desired anonymous customer.
(0059718)
hgbot   
2013-06-27 19:37   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b1881b8d3cc5172b3a0baf4db95024ea55cdb883
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 27 19:37:44 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b1881b8d3cc5172b3a0baf4db95024ea55cdb883 [^]

Fixed issue 24161. Now only the business partner defined as anonymous customer will be selected by default for orders.
The main problem with the query came from the fact that a necessary condition (bpl.businessPartner.id=org.getObretcoCBpartner().getId()) was added with the 'and' operator, but parenthesis were not added properly, so as this was part of a greater expression joined by 'or' operators, other business partners could be incorrectly selected. If these business partners had a name which came before alphabetically as the desired anonymous customer, then they were selected instead.

---
M src/org/openbravo/retail/posterminal/term/BusinessPartner.java
---
(0059719)
migueldejuana   
2013-06-28 09:38   
Fixed and reviewed in RMP24
(0059765)
hgbot   
2013-06-28 10:32   
Repository: erp/pmods/org.openbravo.retail.posterminal.multiorder
Changeset: b1881b8d3cc5172b3a0baf4db95024ea55cdb883
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 27 19:37:44 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.multiorder/rev/b1881b8d3cc5172b3a0baf4db95024ea55cdb883 [^]

Fixed issue 24161. Now only the business partner defined as anonymous customer will be selected by default for orders.
The main problem with the query came from the fact that a necessary condition (bpl.businessPartner.id=org.getObretcoCBpartner().getId()) was added with the 'and' operator, but parenthesis were not added properly, so as this was part of a greater expression joined by 'or' operators, other business partners could be incorrectly selected. If these business partners had a name which came before alphabetically as the desired anonymous customer, then they were selected instead.

---
M src/org/openbravo/retail/posterminal/term/BusinessPartner.java
---
(0059800)
hgbot   
2013-07-02 08:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: db117a1f5bf342824fd5539e92578fbdce3238ca
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 27 19:37:44 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/db117a1f5bf342824fd5539e92578fbdce3238ca [^]

Fixed issue 24161. Now only the business partner defined as anonymous customer will be selected by default for orders.
The main problem with the query came from the fact that a necessary condition (bpl.businessPartner.id=org.getObretcoCBpartner().getId()) was added with the 'and' operator, but parenthesis were not added properly, so as this was part of a greater expression joined by 'or' operators, other business partners could be incorrectly selected. If these business partners had a name which came before alphabetically as the desired anonymous customer, then they were selected instead.

---
M src/org/openbravo/retail/posterminal/term/BusinessPartner.java
---
(0059858)
hgbot   
2013-07-04 16:40   
Repository: erp/pmods/org.openbravo.retail.posterminal.multiorder
Changeset: db117a1f5bf342824fd5539e92578fbdce3238ca
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 27 19:37:44 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal.multiorder/rev/db117a1f5bf342824fd5539e92578fbdce3238ca [^]

Fixed issue 24161. Now only the business partner defined as anonymous customer will be selected by default for orders.
The main problem with the query came from the fact that a necessary condition (bpl.businessPartner.id=org.getObretcoCBpartner().getId()) was added with the 'and' operator, but parenthesis were not added properly, so as this was part of a greater expression joined by 'or' operators, other business partners could be incorrectly selected. If these business partners had a name which came before alphabetically as the desired anonymous customer, then they were selected instead.

---
M src/org/openbravo/retail/posterminal/term/BusinessPartner.java
---
(0059945)
hgbot   
2013-07-11 09:50   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7565ac4130ecf100998f78dd2e6949afd2ae543b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 27 19:37:44 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7565ac4130ecf100998f78dd2e6949afd2ae543b [^]

Fixed issue 24161. Now only the business partner defined as anonymous customer will be selected by default for orders.
The main problem with the query came from the fact that a necessary condition (bpl.businessPartner.id=org.getObretcoCBpartner().getId()) was added with the 'and' operator, but parenthesis were not added properly, so as this was part of a greater expression joined by 'or' operators, other business partners could be incorrectly selected. If these business partners had a name which came before alphabetically as the desired anonymous customer, then they were selected instead.

---
M src/org/openbravo/retail/posterminal/term/BusinessPartner.java
---
(0059948)
priyam   
2013-07-11 10:54   
closed as status changed by RMP23.2 merge
(0060231)
hgbot   
2013-07-24 13:40   
Repository: erp/pmods/org.openbravo.retail.posterminal-col
Changeset: 7565ac4130ecf100998f78dd2e6949afd2ae543b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 27 19:37:44 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-col/rev/7565ac4130ecf100998f78dd2e6949afd2ae543b [^]

Fixed issue 24161. Now only the business partner defined as anonymous customer will be selected by default for orders.
The main problem with the query came from the fact that a necessary condition (bpl.businessPartner.id=org.getObretcoCBpartner().getId()) was added with the 'and' operator, but parenthesis were not added properly, so as this was part of a greater expression joined by 'or' operators, other business partners could be incorrectly selected. If these business partners had a name which came before alphabetically as the desired anonymous customer, then they were selected instead.

---
M src/org/openbravo/retail/posterminal/term/BusinessPartner.java
---
(0060276)
guilleaer   
2013-07-24 17:30   
reclosing