Compare commits

...

1 Commits

Author SHA1 Message Date
Nabin Hait
053ad229e1 fix: map item_ID instead of item_code while creating subcontracting order from PO (#43822)
(cherry picked from commit 91f6f75a5b)
2024-10-24 16:42:12 +00:00

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,