POS-Awesome icon indicating copy to clipboard operation
POS-Awesome copied to clipboard

[BUG]: Remove Disabled Batch Records From Product Bundle Auto Selection

Open elan-k opened this issue 2 years ago • 2 comments

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.

  1. Select the Product Bundle Item on the POS-Awesome Screen
  2. 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).

  1. Disable the respective batch to resolve this issue
  2. 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

image

elan-k avatar Jul 30 '22 02:07 elan-k

@elan-k any ideas how we can achieve that ?

yrestom avatar Nov 22 '22 13:11 yrestom

Dear @yrestom,

  1. We can add a filter (not disabled) for the auto-selection of batches on the item of the Product Bundle.
  2. 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:

  1. Disable the batch of the item of the Product Bundle
  2. Try to make the sale invoice for that Product Bundle

Thank you for your valuable time and effort.

elan-k avatar Nov 23 '22 09:11 elan-k