mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 14:41:53 +00:00
fix: update operating cost when propagating workstation hour rate to routing
This commit is contained in:
@@ -206,6 +206,7 @@ class Workstation(Document):
|
||||
(
|
||||
frappe.qb.update(bom_op)
|
||||
.set(bom_op.hour_rate, self.hour_rate)
|
||||
.set(bom_op.operating_cost, self.hour_rate * bom_op.time_in_mins / 60)
|
||||
.where(bom_op.parent.isin(bom_list) & (bom_op.workstation == self.name))
|
||||
.run()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user