Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0039215
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Retail Modules] Web POSminoralways2018-09-03 13:022018-09-03 13:02
ReporterLeyreView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0039215: Modify the product search on Web Pos.

DescriptionIt is required that the SQL returns only the products that start with the text/number entered in the search.
Steps To ReproduceExample:

Product 1
name = product1

Product 2
name = product2

Product 3
name=3product

Expected result: when you search by "product" only see product1 and product2.

** There is a preference for searching in remote mode that is used for this: Use contains in Remote Product search
Proposed SolutionModify the code in ob-retail-searchproducts.js

Now:

if (inEvent.productName) {
      inEvent.productName = '%' + inEvent.productName + '%';
      whereClause += '_filter like ?';
      params.push(inEvent.productName);
    } else {
      whereClause += '1 = 1';
    }

Proposed change:
if (inEvent.productName) {
      inEvent.productName =inEvent.productName + '%';
      whereClause += '_filter like ?';
      params.push(inEvent.productName);
    } else {
      whereClause += '1 = 1';
    }
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-09-03 13:02 Leyre New Issue
2018-09-03 13:02 Leyre Assigned To => Retail
2018-09-03 13:02 Leyre Triggers an Emergency Pack => No


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker