mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 14:55:13 +00:00
fix(manufacturing): set sales order references in subassembly child table
This commit is contained in:
@@ -790,6 +790,8 @@ class ProductionPlan(Document):
|
|||||||
"stock_uom",
|
"stock_uom",
|
||||||
"bom_level",
|
"bom_level",
|
||||||
"schedule_date",
|
"schedule_date",
|
||||||
|
"sales_order",
|
||||||
|
"sales_order_item",
|
||||||
]:
|
]:
|
||||||
if row.get(field):
|
if row.get(field):
|
||||||
wo_data[field] = row.get(field)
|
wo_data[field] = row.get(field)
|
||||||
@@ -829,6 +831,8 @@ class ProductionPlan(Document):
|
|||||||
"qty",
|
"qty",
|
||||||
"description",
|
"description",
|
||||||
"production_plan_item",
|
"production_plan_item",
|
||||||
|
"sales_order",
|
||||||
|
"sales_order_item",
|
||||||
]:
|
]:
|
||||||
po_data[field] = row.get(field)
|
po_data[field] = row.get(field)
|
||||||
|
|
||||||
@@ -1015,6 +1019,10 @@ class ProductionPlan(Document):
|
|||||||
if not is_group_warehouse:
|
if not is_group_warehouse:
|
||||||
data.fg_warehouse = self.sub_assembly_warehouse
|
data.fg_warehouse = self.sub_assembly_warehouse
|
||||||
|
|
||||||
|
if not self.combine_sub_items:
|
||||||
|
data.sales_order = row.sales_order
|
||||||
|
data.sales_order_item = row.sales_order_item
|
||||||
|
|
||||||
def set_default_supplier_for_subcontracting_order(self):
|
def set_default_supplier_for_subcontracting_order(self):
|
||||||
items = [
|
items = [
|
||||||
d.production_item for d in self.sub_assembly_items if d.type_of_manufacturing == "Subcontract"
|
d.production_item for d in self.sub_assembly_items if d.type_of_manufacturing == "Subcontract"
|
||||||
|
|||||||
Reference in New Issue
Block a user