mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 23:54:59 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user