Skip to content

Commit

Permalink
fix(Timesheet): reset billing hours equal to hours if they exceed act…
Browse files Browse the repository at this point in the history
…ual hours
  • Loading branch information
ruchamahabal committed Nov 16, 2023
1 parent 9731b74 commit 0ec8034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/projects/doctype/timesheet/timesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def calculate_percentage_billed(self):

def update_billing_hours(self, args):
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
else:
args.billing_hours = 0
Expand Down

0 comments on commit 0ec8034

Please sign in to comment.