From 41c7890a6d0ca32410e24a3a6739a13f51e409d7 Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Fri, 6 Feb 2026 12:48:15 +0530 Subject: [PATCH] fix: Add handling for Sales Invoice Item quantity field Add handling for Sales Invoice Item quantity field (cherry picked from commit edfcaee99b19906191e2c1c7db44ce11966f1833) --- .../doctype/serial_and_batch_bundle/serial_and_batch_bundle.py | 2 ++ 1 file changed, 2 insertions(+) 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 69a82ab64cb..1c9dff446f5 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 @@ -1032,6 +1032,8 @@ class SerialandBatchBundle(Document): qty_field = "consumed_qty" elif row.get("doctype") == "Stock Entry Detail": qty_field = "transfer_qty" + elif row.get("doctype") == "Sales Invoice Item": + qty_field = "stock_qty" return qty_field