mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: Billing hours is not updated in Time sheet#19026 (#42404)
This commit is contained in:
@@ -296,6 +296,7 @@ frappe.ui.form.on("Timesheet Detail", {
|
|||||||
|
|
||||||
hours: function (frm, cdt, cdn) {
|
hours: function (frm, cdt, cdn) {
|
||||||
calculate_end_time(frm, cdt, cdn);
|
calculate_end_time(frm, cdt, cdn);
|
||||||
|
update_billing_hours(frm, cdt, cdn);
|
||||||
calculate_billing_costing_amount(frm, cdt, cdn);
|
calculate_billing_costing_amount(frm, cdt, cdn);
|
||||||
calculate_time_and_amount(frm);
|
calculate_time_and_amount(frm);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class Timesheet(Document):
|
|||||||
for row in self.time_logs:
|
for row in self.time_logs:
|
||||||
if row.to_time and row.from_time:
|
if row.to_time and row.from_time:
|
||||||
row.hours = time_diff_in_hours(row.to_time, row.from_time)
|
row.hours = time_diff_in_hours(row.to_time, row.from_time)
|
||||||
|
self.update_billing_hours(row)
|
||||||
|
|
||||||
def calculate_total_amounts(self):
|
def calculate_total_amounts(self):
|
||||||
self.total_hours = 0.0
|
self.total_hours = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user