Skip to content

Commit

Permalink
fix: check item_code in all rows of po_items (#31741)
Browse files Browse the repository at this point in the history
fix: check item-code in each row of po-items
  • Loading branch information
s-aga-r authored Aug 13, 2022
1 parent e5e88bb commit 0047e18
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ def get_sub_assembly_items(self, manufacturing_type=None):
sub_assembly_items_store = [] # temporary store to process all subassembly items

for row in self.po_items:
if not row.item_code:
frappe.throw(_("Row #{0}: Please select Item Code in Assembly Items").format(row.idx))

bom_data = []
get_sub_assembly_items(row.bom_no, bom_data, row.planned_qty)
self.set_sub_assembly_items_based_on_level(row, bom_data, manufacturing_type)
Expand Down

0 comments on commit 0047e18

Please sign in to comment.