fix(Timesheet): reset billing hours equal to hours if they exceed actual hours (#38134)
This commit is contained in:
parent
8c6e341a71
commit
20c6e9fca2
@ -69,7 +69,7 @@ class Timesheet(Document):
|
|||||||
|
|
||||||
def update_billing_hours(self, args):
|
def update_billing_hours(self, args):
|
||||||
if args.is_billable:
|
if args.is_billable:
|
||||||
if flt(args.billing_hours) == 0.0:
|
if flt(args.billing_hours) == 0.0 or flt(args.billing_hours) > flt(args.hours):
|
||||||
args.billing_hours = args.hours
|
args.billing_hours = args.hours
|
||||||
else:
|
else:
|
||||||
args.billing_hours = 0
|
args.billing_hours = 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user