mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
fix(Timesheet): don't use billing_hours for costing amount calculation (#50392)
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user