commit | 97be527ee9693b41d42bf06da96526f508ccc59a | [log] [tgz] |
---|---|---|
author | Nandhinidevi123 <nandhini.devi@thirvusoft.in> | Wed Nov 29 17:21:51 2023 +0530 |
committer | Nandhinidevi123 <nandhini.devi@thirvusoft.in> | Wed Nov 29 17:21:51 2023 +0530 |
tree | f7fe514f9027f7cd89f014dfce71900387c491f6 | |
parent | cac3b4a0d842524150ecf39428baeba9e845ead4 [diff] |
fix:change default qty
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 abdbeb4..3c824fd 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 @@ 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"),