Skip to content

Commit

Permalink
fix: map item_ID instead of item_code while creating subcontracting o…
Browse files Browse the repository at this point in the history
…rder from PO (#43822)
  • Loading branch information
nabinhait authored Oct 24, 2024
1 parent 349c2b1 commit 91f6f75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ def populate_items_table(self):
bom = (
frappe.db.get_value(
"Subcontracting BOM",
{"finished_good": item.item_code, "is_active": 1},
{"finished_good": item.name, "is_active": 1},
"finished_good_bom",
)
or item.default_bom
)

items.append(
{
"item_code": item.item_code,
"item_code": item.name,
"item_name": item.item_name,
"schedule_date": self.schedule_date,
"description": item.description,
Expand Down

0 comments on commit 91f6f75

Please sign in to comment.