mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-26 10:08:30 +00:00
fix: map item_ID instead of item_code while creating subcontracting order from PO (#43822)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user