mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix: throw if BOM No is not set
This commit is contained in:
@@ -795,6 +795,9 @@ class ProductionPlan(Document):
|
|||||||
if not row.item_code:
|
if not row.item_code:
|
||||||
frappe.throw(_("Row #{0}: Please select Item Code in Assembly Items").format(row.idx))
|
frappe.throw(_("Row #{0}: Please select Item Code in Assembly Items").format(row.idx))
|
||||||
|
|
||||||
|
if not row.bom_no:
|
||||||
|
frappe.throw(_("Row #{0}: Please select the BOM No in Assembly Items").format(row.idx))
|
||||||
|
|
||||||
bom_data = []
|
bom_data = []
|
||||||
|
|
||||||
warehouse = row.warehouse if self.skip_available_sub_assembly_item else None
|
warehouse = row.warehouse if self.skip_available_sub_assembly_item else None
|
||||||
|
|||||||
Reference in New Issue
Block a user