Skip to content

Commit

Permalink
fix: replace reference to old function
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Oct 2, 2021
1 parent 1644489 commit 4e785b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/accounts/doctype/sales_invoice/sales_invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e
let row = frappe.get_doc(d.doctype, d.name)
set_timesheet_detail_rate(row.doctype, row.name, me.frm.doc.currency, row.timesheet_detail)
});
calculate_total_billing_amount(this.frm);
frm.trigger("calculate_timesheet_totals");
}
}
};
Expand Down Expand Up @@ -1001,7 +1001,7 @@ frappe.ui.form.on('Sales Invoice', {
});

frappe.ui.form.on("Sales Invoice Timesheet", {
timesheets_remove(frm, cdt, cdn) {
timesheets_remove(frm) {
frm.trigger("calculate_timesheet_totals");
}
});
Expand Down

0 comments on commit 4e785b9

Please sign in to comment.