Skip to content

Commit

Permalink
fix: corrective_operation_cost in Job Card (#39829)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihantra-Patel authored Feb 12, 2024
1 parent 1d1cb86 commit 22291d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/job_card/job_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def update_corrective_in_work_order(self, wo):
fields=["total_time_in_mins", "hour_rate"],
filters={"is_corrective_job_card": 1, "docstatus": 1, "work_order": self.work_order},
):
wo.corrective_operation_cost += flt(row.total_time_in_mins) * flt(row.hour_rate)
wo.corrective_operation_cost += flt(row.total_time_in_mins / 60) * flt(row.hour_rate)

wo.calculate_operating_cost()
wo.flags.ignore_validate_update_after_submit = True
Expand Down

0 comments on commit 22291d3

Please sign in to comment.