mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 10:13:57 +00:00
fix(Timesheet): don't use billing_hours for costing amount (#50394)
This commit is contained in:
@@ -285,7 +285,7 @@ class Timesheet(Document):
|
|||||||
if data.activity_type or data.is_billable:
|
if data.activity_type or data.is_billable:
|
||||||
rate = get_activity_cost(self.employee, data.activity_type)
|
rate = get_activity_cost(self.employee, data.activity_type)
|
||||||
hours = data.billing_hours or 0
|
hours = data.billing_hours or 0
|
||||||
costing_hours = data.billing_hours or data.hours or 0
|
costing_hours = data.hours or 0
|
||||||
if rate:
|
if rate:
|
||||||
data.billing_rate = (
|
data.billing_rate = (
|
||||||
flt(rate.get("billing_rate")) if flt(data.billing_rate) == 0 else data.billing_rate
|
flt(rate.get("billing_rate")) if flt(data.billing_rate) == 0 else data.billing_rate
|
||||||
|
|||||||
Reference in New Issue
Block a user