Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046077Retail ModulesWeb POSpublic2021-03-15 17:102021-03-22 08:52
jetxarri 
rqueralta 
highmajoralways
closedfixed 
5
RR20Q3.4 
RR21Q2 
marvintm
No
0046077: Double upper case in the where clause searching by Name, search key or UPC
The problem happens when the user works with cache not initialized. If the user tries to find a product by "Name, search key or UPC" the result will create the following query "SimpleQueryBuilder --> getPart method":

..... or upper(upper(product3_.UPC)) like upper($2) ......

2 concatenated upper cases
-Login into Web POS
-Press "search"
-Introduce a value in field "Name, search key or UPC" <-- Cache should not be initialized to force to do a remote search of the product.

The problem is that loaded property in the model is
 add(new HQLProperty("upper(product.uPCEAN)", "uPCEAN"));
instead of
 add(new HQLProperty("product.uPCEAN", "uPCEAN"));

As it is possible to see in file ProductProperties
NOR
related to feature request 0046074 closed ranjith_qualiantech_com Models with multiple queries do not accept pagination by Id 
related to defect 0046082 closed rqueralta Remote search of the product with wrong order by 
Issue History
2021-03-15 17:10jetxarriNew Issue
2021-03-15 17:10jetxarriAssigned To => Retail
2021-03-15 17:10jetxarriTriggers an Emergency Pack => No
2021-03-15 17:30rafarodaResolution time => 1617141600
2021-03-15 17:30rafarodaSeverityminor => major
2021-03-15 17:31rafarodaTag Attached: NOR
2021-03-15 17:31rafarodaRelationship addedrelated to 0046074
2021-03-16 13:21shuehnerRelationship addedrelated to 0046082
2021-03-16 20:05rqueraltaAssigned ToRetail => rqueralta
2021-03-16 20:05rqueraltaStatusnew => scheduled
2021-03-22 08:52marvintmNote Added: 0126815
2021-03-22 08:52marvintmStatusscheduled => resolved
2021-03-22 08:52marvintmFixed in Version => RR21Q2
2021-03-22 08:52marvintmResolutionopen => fixed
2021-03-22 08:52marvintmReview Assigned To => marvintm
2021-03-22 08:52marvintmStatusresolved => closed

Notes
(0126815)
marvintm   
2021-03-22 08:52   
This issue has been fixed by the change in issue https://issues.openbravo.com/view.php?id=46082 [^]

https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/192/diffs [^]