POS-Awesome
POS-Awesome copied to clipboard
[BUG]: Remove Disabled Batch Records From Product Bundle Auto Selection
Versions
ERPNext: v13.36.1 (HEAD) Frappe Framework: v13.36.2 (HEAD) POS Awesome: v3.3.0 (HEAD)
Steps to reproduce
Pre-Assumptions & Settings: Create the Product Bundle on the Batch Based Items, so that POS-Awesome can select the batch automatically based on the Expiry Date. And ensure we have an empty batch or low stock in the respective warehouse.
- Select the Product Bundle Item on the POS-Awesome Screen
- Getting the Error message as "Insufficient Stock for Batch"
Even though we have another batch with the required quantity. It's complaining about the stock issue on the first batch (Expiry Based).
- Disable the respective batch to resolve this issue
- Getting the same Error message as "Insufficient Stock for Batch", Looks like Disable is not checked at the automatic batch selection.
What is Expected?
Auto select the next batch if the quantity is not enough and remove the disabled batches from the selection as well.
What is actually happening?
Getting the same Error message as "Insufficient Stock for Batch", Looks like the disabled batches are not removed from the batch selection.
Screenshots
@elan-k any ideas how we can achieve that ?
Dear @yrestom,
- We can add a filter (not disabled) for the auto-selection of batches on the item of the Product Bundle.
- Skip the batch and go to the next batch in the array or list if the batch qty is not equal or more.
Recreate the issue:
- Disable the batch of the item of the Product Bundle
- Try to make the sale invoice for that Product Bundle
Thank you for your valuable time and effort.