Files
erpnext/erpnext
pandiyan adbc67ef11 fix: guard scio row lookup in stock entry items_add
check the result of find() before reading t_warehouse off it. on a
'receive from customer' entry with no row carrying scio_detail, find()
returns undefined and items_add throws a typeerror.

the throw rejects the serially-run handler chain, so the stock entry
controller's own items_add never runs and the new row silently loses
its target warehouse, expense account, cost center and serial/batch
field defaults.

leave t_warehouse unset when no reference row exists, so the rest of
the chain still runs.

(cherry picked from commit 6e444a1832)

# Conflicts:
#	erpnext/stock/doctype/stock_entry/stock_entry.js
2026-07-31 03:26:40 +00:00
..
2026-01-13 10:50:15 +05:30