fix(Timesheet): don't use billing_hours for costing amount calculation (#50392)

This commit is contained in:
Patrick Eißler
2025-11-07 08:56:16 +01:00
committed by GitHub
parent 6d4afc85e6
commit 4846dfd3ca

View File

@@ -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."""