mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-21 11:15:10 +00:00
fix: do not consider draft bundles
(cherry picked from commita60f7eaf3a) (cherry picked from commit75323fda01)
This commit is contained in:
committed by
Mergify
parent
161c1fb7a4
commit
92afae7185
@@ -1374,7 +1374,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