mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 14:48:26 +00:00
The inspection skip for secondary rows applied to every purpose, and in validate_inspection it skipped the row even when the item itself mandated inspection. Secondary Item Type is only meaningful on the purposes that produce secondary items, but nothing clears it elsewhere, since mark_finished_and_secondary_items runs for Manufacture and Repack alone. A Material Receipt of an item marked Inspection Required Before Purchase is blocked without an inspection. Setting Secondary Item Type on the row submitted it clean. Limit the exemption to the purposes that produce secondary items, and to other doctypes such as Subcontracting Receipt, which carry the field with its intended meaning. The client-side mirror is kept in sync.