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