Merge pull request #57567 from aerele/fix/stock-balance-for-none-row

fix: guard against None row in get_stock_balance_for
This commit is contained in:
Mihir Kandoi
2026-07-28 19:26:26 +05:30
committed by GitHub

View File

@@ -1547,7 +1547,7 @@ def get_stock_balance_for(
)
serial_nos = "\n".join(d.serial_no for d in serial_no_details if d.batch_no == batch_no)
if row.use_serial_batch_fields and row.batch_no and (qty or row.current_qty):
if row and row.use_serial_batch_fields and row.batch_no and (qty or row.current_qty):
rate = get_incoming_rate(
frappe._dict(
{