Notes |
|
|
This issue seems to be a regression introduced in RMP22. |
|
|
|
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
---
|
|
|
|
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
---
|
|
|
|
|