Skip to content

Commit

Permalink
fix: throw if BOM No is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Aug 18, 2023
1 parent 268c19e commit 2e22b01
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ def get_sub_assembly_items(self, manufacturing_type=None):
if not row.item_code:
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 = []

warehouse = row.warehouse if self.skip_available_sub_assembly_item else None
Expand Down

0 comments on commit 2e22b01

Please sign in to comment.