Files
erpnext/erpnext
Mihir Kandoi 455251abe1 fix: throw when the transaction company has no sample retention warehouse
Item.retain_sample is validated against any company having one configured,
since Item is not company-scoped. The transaction company may still not be,
in which case get_batch_qty received warehouse=None and returned its batch
list, which was then compared numerically -> TypeError.

Resolve company -> retention warehouse through one helper that throws a
clear message instead, covering both the sample stock entry and the
whitelisted quantity validation.
2026-07-28 19:41:29 +05:30
..
2026-07-27 11:15:18 +00:00
2026-07-26 16:10:52 +02:00
2026-07-01 17:04:11 +05:30