mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
Merge pull request #49917 from rohitwaghchaure/fixed-batch-qty-issue
fix: do not consider draft bundles
This commit is contained in:
@@ -1400,7 +1400,7 @@ def throw_negative_batch_validation(batch_no, qty):
|
|||||||
def get_batchwise_qty(voucher_type, voucher_no):
|
def get_batchwise_qty(voucher_type, voucher_no):
|
||||||
bundles = frappe.get_all(
|
bundles = frappe.get_all(
|
||||||
"Serial and Batch Bundle",
|
"Serial and Batch Bundle",
|
||||||
filters={"voucher_no": voucher_no, "voucher_type": voucher_type},
|
filters={"voucher_no": voucher_no, "voucher_type": voucher_type, "docstatus": (">", 0)},
|
||||||
pluck="name",
|
pluck="name",
|
||||||
)
|
)
|
||||||
if not bundles:
|
if not bundles:
|
||||||
|
|||||||
Reference in New Issue
Block a user