Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034966Retail ModulesFilter by stock in product searchpublic2017-01-16 13:122017-01-30 09:25
nataliag 
jorge-garcia 
normalmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0034966: Filter by stock in product search does not allow to filter by other filter categories using part of the name of the product.
If you search a product using the second word of its name(Or any other but not the first one) and you filter it by stock, then, the rest of the filters don’t work and no results appear on them.
1- Go to webPOS in livebuilds (Reatil with Modules)
2- In search panel if you search by word “section” you can see two results.
3- Apply stock filter, setting it as “More than 50” for example.
4- Now select any one of the other filters available (except price).
5- Any results are shown in those filters.
6- If you do the same steps but using the word “Pole” (the first one of the product name) this behavior does not occur. The filters work correctly and shown the different options in their categories. (Aluminum in Material filter, Black Diamond or Salomon in brand filter, Poles in Object... )
No tags attached.
related to defect 0034531 closed jorge-garcia Filer by stock in product search only allows to search by name of a product if you use the first word of the product name. 
Issue History
2017-01-16 13:12nataliagNew Issue
2017-01-16 13:12nataliagAssigned To => Retail
2017-01-16 13:12nataliagResolution time => 1486335600
2017-01-16 13:12nataliagTriggers an Emergency Pack => No
2017-01-16 13:27eugeniIssue Monitored: eugeni
2017-01-16 13:29marvintmRelationship addedrelated to 0034531
2017-01-17 09:21jorge-garciaStatusnew => scheduled
2017-01-17 09:21jorge-garciaAssigned ToRetail => jorge-garcia
2017-01-19 09:03hgbotCheckin
2017-01-19 09:03hgbotNote Added: 0093717
2017-01-19 09:03hgbotStatusscheduled => resolved
2017-01-19 09:03hgbotResolutionopen => fixed
2017-01-19 09:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2226b2317d6a8f8185a8aaa35db06262d2fdd2b0 [^]
2017-01-30 08:40hgbotCheckin
2017-01-30 08:40hgbotNote Added: 0093907
2017-01-30 09:25marvintmReview Assigned To => marvintm
2017-01-30 09:25marvintmStatusresolved => closed
2017-01-30 09:25marvintmFixed in Version => RR17Q2

Notes
(0093717)
hgbot   
2017-01-19 09:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2226b2317d6a8f8185a8aaa35db06262d2fdd2b0
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Jan 17 11:05:58 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2226b2317d6a8f8185a8aaa35db06262d2fdd2b0 [^]

Fixed issue 34966: Filter by stock in product search does not allow to filter
by other filter categories using part of the name of the product

In general, the search of products without remote is done using the contains
condition because we can assume the quantity of products will be small. This is
not done in case we use high volumes, where we search products using the
startswith condition.

With stock criteria the search is forced to do in the server. This filtering was
failing with the search of characteristic values and brand values.

---
M web/org.openbravo.retail.posterminal/js/components/modalproductbrand.js
M web/org.openbravo.retail.posterminal/js/components/modalproductcharacteristic.js
---
(0093907)
hgbot   
2017-01-30 08:40   
Repository: tools/automation/pi-mobile
Changeset: dfaae79d9cb36260a73388137c20d8bf8306c23c
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Jan 26 11:39:16 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/dfaae79d9cb36260a73388137c20d8bf8306c23c [^]

Verifies issue 34966: Filter by stock in product search does not allow to
filter by other filter categories using part of the name of the product.

Added test I34966_StockCriteriaFilter.

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/stockcriteria/I34966_StockCriteriaFilter.java
---