fix: map item_ID instead of item_code while creating subcontracting order from PO (#43822)

This commit is contained in:
Nabin Hait
2024-10-24 22:10:43 +05:30
committed by GitHub
parent 349c2b1cdc
commit 91f6f75a5b

View File

@@ -244,7 +244,7 @@ class SubcontractingOrder(SubcontractingController):
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
@@ -252,7 +252,7 @@ class SubcontractingOrder(SubcontractingController):
items.append(
{
"item_code": item.item_code,
"item_code": item.name,
"item_name": item.item_name,
"schedule_date": self.schedule_date,
"description": item.description,