Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034532Retail ModulesFilter by stock in product searchpublic2016-11-15 13:502016-12-07 17:35
nataliag 
marvintm 
normalmajoralways
closedfixed 
5
 
RR17Q1 
guilleaer
No
0034532: Filter by stock in combination with another filter produces an error searching a product name not using its first word
If you use the filter by stock and another filter at the same time, like price filter and you want to search a product, for example “Baby carrier” but you search it using only the word “carrier” in the search field, an error is shown and any result appeared.
1- Go to web POS and select SEARCH option in the menu.
2- Select the stock filter and configure it like More than 0.
3- Select the price filter and configure it like 100-200€
4- Introduce in the search field “Baby”.
5- One result is shown(“Baby Carrier”). It is OK.
6- Now introduce in the search field “carrier”. An error is shown (Error.png attached) and any result appeared.
No tags attached.
png Error.png (202,215) 2016-11-15 13:50
https://issues.openbravo.com/file_download.php?file_id=10046&type=bug
png

patch 34532test.patch (4,142) 2016-12-01 12:03
https://issues.openbravo.com/file_download.php?file_id=10140&type=bug
Issue History
2016-11-15 13:50nataliagNew Issue
2016-11-15 13:50nataliagAssigned To => Retail
2016-11-15 13:50nataliagFile Added: Error.png
2016-11-15 13:50nataliagResolution time => 1480978800
2016-11-15 13:50nataliagTriggers an Emergency Pack => No
2016-11-16 09:45eugeniIssue Monitored: eugeni
2016-11-21 13:10shivum039Assigned ToRetail => shivum039
2016-11-21 13:10shivum039Statusnew => scheduled
2016-11-23 11:10shivum039File Added: 34532test.patch
2016-12-01 12:02shivum039Note Added: 0091961
2016-12-01 12:03shivum039File Deleted: 34532test.patch
2016-12-01 12:03shivum039File Added: 34532test.patch
2016-12-01 15:38jorge-garciaAssigned Toshivum039 => Retail
2016-12-02 23:09hgbotCheckin
2016-12-02 23:09hgbotNote Added: 0092059
2016-12-02 23:10mario_castelloAssigned ToRetail => mario_castello
2016-12-06 16:45marvintmAssigned Tomario_castello => marvintm
2016-12-06 19:27hgbotCheckin
2016-12-06 19:27hgbotNote Added: 0092144
2016-12-06 19:27hgbotStatusscheduled => resolved
2016-12-06 19:27hgbotResolutionopen => fixed
2016-12-06 19:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/66acba20792c8fa6309628465c5358d8c9d19326 [^]
2016-12-06 20:35hgbotCheckin
2016-12-06 20:35hgbotNote Added: 0092150
2016-12-06 20:35hgbotCheckin
2016-12-06 20:35hgbotNote Added: 0092151
2016-12-07 17:35guilleaerReview Assigned To => guilleaer
2016-12-07 17:35guilleaerStatusresolved => closed
2016-12-07 17:35guilleaerFixed in Version => RR17Q1

Notes
(0091961)
shivum039   
2016-12-01 12:02   
With Respect to the issue ,the error is no longer available But the search with the random pattern is not working .

Hence the Fix for issue 34531 seems to be a possible fix for this issue also .

and the automated test has been attached
(0092059)
hgbot   
2016-12-02 23:09   
Repository: tools/automation/pi-mobile
Changeset: 267451c23c50658b330025cfc200faa140201bc1
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Fri Dec 02 16:09:21 2016 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/267451c23c50658b330025cfc200faa140201bc1 [^]

Related to issue 34532: Added automated test I34532_FilterWithCombinationsAndPatternContain

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/stockcriteria/I34532_FilterWithCombinationsAndPatternContain.java
---
(0092144)
hgbot   
2016-12-06 19:27   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 66acba20792c8fa6309628465c5358d8c9d19326
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Dec 06 17:47:16 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/66acba20792c8fa6309628465c5358d8c9d19326 [^]

Fixed issue 34532. Added forceRemote flag to query to ensure that it works with stock criteria

---
M web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproductcharacteristic.js
---
(0092150)
hgbot   
2016-12-06 20:35   
Repository: tools/automation/pi-mobile
Changeset: 06cc6dbbbe179b8feecc8378944e51f529baca81
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Dec 06 17:45:45 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/06cc6dbbbe179b8feecc8378944e51f529baca81 [^]

Related to issue 34532. Added automated test for this case.

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/stockcriteria/I34532_FilterStockProdCharAndName.java
---
(0092151)
hgbot   
2016-12-06 20:35   
Repository: tools/automation/pi-mobile
Changeset: 734e5495c04783e75bcbf843a177aaf6a3d00627
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Dec 06 19:37:02 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/734e5495c04783e75bcbf843a177aaf6a3d00627 [^]

Related to issue 34532. Fixed name of product.

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/stockcriteria/I34532_FilterStockProdCharAndName.java
---