From 4e6d86d6f0bafc19c11e224e68c211a0db3371fa Mon Sep 17 00:00:00 2001 From: Navin-S-R Date: Sat, 10 Jan 2026 19:29:25 +0530 Subject: [PATCH] fix(stock entry): calculate transferred quantity using transfer_qty --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index 215ad6d2ee9..8c200715397 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -3238,7 +3238,7 @@ class StockEntry(StockController, SubcontractingInwardController): stock_entries_child_list.append(d.ste_detail) transferred_qty = frappe.get_all( "Stock Entry Detail", - fields=[{"SUM": "qty", "as": "qty"}], + fields=[{"SUM": "transfer_qty", "as": "qty"}], filters={ "against_stock_entry": d.against_stock_entry, "ste_detail": d.ste_detail,