From 97be527ee9693b41d42bf06da96526f508ccc59a Mon Sep 17 00:00:00 2001 From: Nandhinidevi123 Date: Wed, 29 Nov 2023 17:21:51 +0530 Subject: [PATCH] fix:change default qty --- .../doctype/serial_and_batch_bundle/serial_and_batch_bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index abdbeb496b..3c824fd590 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -1018,7 +1018,7 @@ def update_serial_batch_no_ledgers(entries, child_row, parent_doc, warehouse=Non doc.append( "entries", { - "qty": d.get("qty") * (1 if doc.type_of_transaction == "Inward" else -1), + "qty": (d.get("qty") or 1.0) * (1 if doc.type_of_transaction == "Inward" else -1), "warehouse": warehouse or d.get("warehouse"), "batch_no": d.get("batch_no"), "serial_no": d.get("serial_no"),