mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-27 22:05:19 +00:00
fix(manufacturing): classify MRP items without a BOM as Purchase (#58509)
This commit is contained in:
@@ -467,6 +467,8 @@ class MaterialRequirementsPlanningReport:
|
||||
row.lead_time = math.ceil(row.required_qty / row.lead_time)
|
||||
elif not row.required_qty:
|
||||
row.lead_time = 0
|
||||
else:
|
||||
row.type_of_material = "Purchase"
|
||||
|
||||
if not row.lead_time and rm_details.raw_materials:
|
||||
row.lead_time = self.get_lead_time_from_raw_materials(rm_details.raw_materials)
|
||||
|
||||
Reference in New Issue
Block a user