diff --git a/erpnext/projects/doctype/timesheet/timesheet.py b/erpnext/projects/doctype/timesheet/timesheet.py index 09fdfad66ba..ae055b3f5d2 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.py +++ b/erpnext/projects/doctype/timesheet/timesheet.py @@ -108,15 +108,10 @@ class Timesheet(Document): self.per_billed = (self.total_billed_hours * 100) / self.total_billable_hours def update_billing_hours(self, args): - if args.is_billable: - if flt(args.billing_hours) == 0.0: - args.billing_hours = args.hours - elif flt(args.billing_hours) > flt(args.hours): - frappe.msgprint( - _("Warning - Row {0}: Billing Hours are more than Actual Hours").format(args.idx), - indicator="orange", - alert=True, - ) + if args.is_billable and ( + flt(args.billing_hours) == 0.0 or flt(args.billing_hours) != flt(args.hours) + ): + args.billing_hours = args.hours else: args.billing_hours = 0