diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index d4defccc452..08cacfe3bb2 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -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: