Skip to content

Commit

Permalink
revert: "fix(Timesheet): reset billing hours equal to hours if they e…
Browse files Browse the repository at this point in the history
…xceed actual hours"

This reverts commit 0ec8034.
  • Loading branch information
ruchamahabal committed Nov 21, 2023
1 parent 9680edf commit 9e971e6
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 or flt(args.billing_hours) > flt(args.hours):
if flt(args.billing_hours) == 0.0:
args.billing_hours = args.hours
else:
args.billing_hours = 0
Expand Down

0 comments on commit 9e971e6

Please sign in to comment.