From 29c976e9ae9d3a7b3e455de4026df1b618cc843b 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:44 +0100 Subject: [PATCH] fix(Timesheet): don't use billing_hours for costing amount (#50394) --- erpnext/projects/doctype/timesheet/timesheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/projects/doctype/timesheet/timesheet.py b/erpnext/projects/doctype/timesheet/timesheet.py index c4ddbcaa8b1..0b4b99ba35b 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.py +++ b/erpnext/projects/doctype/timesheet/timesheet.py @@ -285,7 +285,7 @@ class Timesheet(Document): if data.activity_type or data.is_billable: rate = get_activity_cost(self.employee, data.activity_type) hours = data.billing_hours or 0 - costing_hours = data.billing_hours or data.hours or 0 + costing_hours = data.hours or 0 if rate: data.billing_rate = ( flt(rate.get("billing_rate")) if flt(data.billing_rate) == 0 else data.billing_rate