From 4846dfd3ca60bdddf00955417f547850fb7738e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Ei=C3=9Fler?= <77415730+PatrickDEissler@users.noreply.github.com> Date: Fri, 7 Nov 2025 08:56:16 +0100 Subject: [PATCH] fix(Timesheet): don't use billing_hours for costing amount calculation (#50392) --- erpnext/projects/doctype/timesheet_detail/timesheet_detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/projects/doctype/timesheet_detail/timesheet_detail.py b/erpnext/projects/doctype/timesheet_detail/timesheet_detail.py index 3dbb8614fa4..1ce2e7977d5 100644 --- a/erpnext/projects/doctype/timesheet_detail/timesheet_detail.py +++ b/erpnext/projects/doctype/timesheet_detail/timesheet_detail.py @@ -90,7 +90,7 @@ class TimesheetDetail(Document): ) self.billing_amount = self.billing_rate * (self.billing_hours or 0) - self.costing_amount = self.costing_rate * (self.billing_hours or self.hours or 0) + self.costing_amount = self.costing_rate * (self.hours or 0) def validate_dates(self): """Validate that to_time is not before from_time."""