In order to allow for generic terms to be searched and specific items to be found.
Current State
Search currently exists in the sense that attempts are made to match your inputs, the first item that matches a %input% SQL LIKE is shown. If multiple things match, the sorted order first item is chosen.
<5 digits, look for PLU
<12 digits, look for UPC
non digit characters, look for name
If any fail to find a record, put the input into the assumed slot of the new product form.
Nice To Haves
Pagination of results
Multiple results page
If single value found, go to the product page
If product not found, alert user and bring to the new product page
TODO
Replace index page with search functionality
In order to allow for generic terms to be searched and specific items to be found.
Current State
Search currently exists in the sense that attempts are made to match your inputs, the first item that matches a
%input%
SQL LIKE is shown. If multiple things match, the sorted order first item is chosen.<5 digits, look for PLU <12 digits, look for UPC non digit characters, look for name If any fail to find a record, put the input into the assumed slot of the new product form.
Nice To Haves
User Stories