Merge pull request #49919 from frappe/mergify/bp/version-15-hotfix/pr-49917

fix: do not consider draft bundles (backport #49917)
This commit is contained in:
rohitwaghchaure
2025-10-06 19:54:51 +05:30
committed by GitHub

View File

@@ -1374,7 +1374,7 @@ def throw_negative_batch_validation(batch_no, qty):
def get_batchwise_qty(voucher_type, voucher_no):
bundles = frappe.get_all(
"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",
)
if not bundles: