Fix & Feat: optional direct fetch, filter & limit to get_items() #317
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feat: option to change how filtering and fetching items work, now you can switch to direct item data fetch and filter from the database instead of loading all items when logging in to POS and then filtering the loaded items.
ItemSelector.vue:
onchange event
for item_group & search bar so that if the new feature is enabled it points tosearch_onchange()
and filters from the source.posapp.py:
search_serial_or_batch_or_barcode_number
methodget_conditions
method.get_items()
method to look forserial number, barcode, batch number, and item_code
if the new feature is enabled.get_items()
method if the new feature is enabled.warehouse
filter to fetchingserial_no_data
to fetch only the serial numbers for the current pos profile warehouse.Invoice.vue
validate()
method to check for items with zero quantity in the invoice and shows error if true.other: fix typos