mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
Merge pull request #46513 from mihir-kandoi/46043
fix: get bom_no from sales order item and material request item
This commit is contained in:
@@ -426,6 +426,7 @@ class ProductionPlan(Document):
|
||||
mr_item.item_code,
|
||||
mr_item.warehouse,
|
||||
mr_item.description,
|
||||
mr_item.bom_no,
|
||||
((mr_item.qty - mr_item.ordered_qty) * mr_item.conversion_factor).as_("pending_qty"),
|
||||
)
|
||||
.distinct()
|
||||
|
||||
@@ -892,6 +892,7 @@ def make_material_request(source_name, target_doc=None):
|
||||
"name": "sales_order_item",
|
||||
"parent": "sales_order",
|
||||
"delivery_date": "required_by",
|
||||
"bom_no": "bom_no",
|
||||
},
|
||||
"condition": lambda item: not frappe.db.exists(
|
||||
"Product Bundle", {"name": item.item_code, "disabled": 0}
|
||||
|
||||
Reference in New Issue
Block a user