mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
fix: map item_ID instead of item_code while creating subcontracting order from PO (#43822)
(cherry picked from commit 91f6f75a5b)
This commit is contained in:
@@ -244,7 +244,7 @@ class SubcontractingOrder(SubcontractingController):
|
|||||||
bom = (
|
bom = (
|
||||||
frappe.db.get_value(
|
frappe.db.get_value(
|
||||||
"Subcontracting BOM",
|
"Subcontracting BOM",
|
||||||
{"finished_good": item.item_code, "is_active": 1},
|
{"finished_good": item.name, "is_active": 1},
|
||||||
"finished_good_bom",
|
"finished_good_bom",
|
||||||
)
|
)
|
||||||
or item.default_bom
|
or item.default_bom
|
||||||
@@ -252,7 +252,7 @@ class SubcontractingOrder(SubcontractingController):
|
|||||||
|
|
||||||
items.append(
|
items.append(
|
||||||
{
|
{
|
||||||
"item_code": item.item_code,
|
"item_code": item.name,
|
||||||
"item_name": item.item_name,
|
"item_name": item.item_name,
|
||||||
"schedule_date": self.schedule_date,
|
"schedule_date": self.schedule_date,
|
||||||
"description": item.description,
|
"description": item.description,
|
||||||
|
|||||||
Reference in New Issue
Block a user