mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: routing operations table is blank on pull of operations in BOM (#22039)
This commit is contained in:
@@ -113,7 +113,13 @@ class BOM(WebsiteGenerator):
|
|||||||
self.set("operations", [])
|
self.set("operations", [])
|
||||||
for d in frappe.get_all("BOM Operation", fields = ["*"],
|
for d in frappe.get_all("BOM Operation", fields = ["*"],
|
||||||
filters = {'parenttype': 'Routing', 'parent': self.routing}):
|
filters = {'parenttype': 'Routing', 'parent': self.routing}):
|
||||||
child = self.append('operations', d)
|
child = self.append('operations', {
|
||||||
|
"operation": d.operation,
|
||||||
|
"workstation": d.workstation,
|
||||||
|
"description": d.description,
|
||||||
|
"time_in_mins": d.time_in_mins,
|
||||||
|
"batch_size": d.batch_size
|
||||||
|
})
|
||||||
child.hour_rate = flt(d.hour_rate / self.conversion_rate, 2)
|
child.hour_rate = flt(d.hour_rate / self.conversion_rate, 2)
|
||||||
|
|
||||||
def set_bom_material_details(self):
|
def set_bom_material_details(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user