Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046082Retail ModulesWeb POSpublic2021-03-16 07:092021-03-22 08:46
jetxarri 
rqueralta 
highmajoralways
closedfixed 
5
 
RR21Q2 
No
0046082: Remote search of the product with wrong order by
When the Web POS cache is not initialized, if the user tries to search a product by, the order by value is "order by product.id" when it should be "order by product.name asc, product.id".

The problem is that the model is not remote but as cache is not initialized the system is using remote search.
-Login to Web POS
-Before Cache is initialized (comment lines "this.models[model].searchCache = await this.find(model, criteria);" and "this.models[model].isLoadingCache = false;" in function "loadMasterdataCache")
-Press in search and insert something to search

Verify that the request is done to the back but the model as it is not marked as remote, the order by is by id.
NOR
related to defect 0046077 closed rqueralta Double upper case in the where clause searching by Name, search key or UPC 
Issue History
2021-03-16 07:09jetxarriNew Issue
2021-03-16 07:09jetxarriAssigned To => Retail
2021-03-16 07:09jetxarriTriggers an Emergency Pack => No
2021-03-16 08:35rafarodaTag Attached: NOR
2021-03-16 08:35rafarodaResolution time => 1585605600
2021-03-16 13:21shuehnerRelationship addedrelated to 0046077
2021-03-16 21:57rqueraltaAssigned ToRetail => rqueralta
2021-03-16 21:57rqueraltaStatusnew => scheduled
2021-03-17 15:36hgbotNote Added: 0126760
2021-03-18 08:00marvintmResolution time1585605600 => 1617141600
2021-03-22 08:46hgbotResolutionopen => fixed
2021-03-22 08:46hgbotStatusscheduled => closed
2021-03-22 08:46hgbotNote Added: 0126809
2021-03-22 08:46hgbotFixed in Version => RR21Q2
2021-03-22 08:46hgbotNote Added: 0126810

Notes
(0126760)
hgbot   
2021-03-17 15:36   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/192 [^]
(0126809)
hgbot   
2021-03-22 08:46   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/192 [^]
(0126810)
hgbot   
2021-03-22 08:46   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 25b25f0a01681d0dfd784c0355590b41d3c9abc9
Author: Rafael Queralta <rafaelcuba81@gmail.com>
Date: 2021-03-22T07:27:43+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/25b25f0a01681d0dfd784c0355590b41d3c9abc9 [^]

Fixed BUG-46082: If searchCache is empty for product model forceRemote was set as true

---
M web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproductcharacteristic.js
---