From 7edac5a5d7acbea0b1a627bde3a20bfbdb44876d Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Thu, 9 Sep 2021 19:17:01 +0530 Subject: [PATCH] fix: removing duplicate currency() from sales_invoice.js (#27410) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 2cb9acfa2a..34ac343bed 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -445,15 +445,6 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e this.frm.refresh_field("base_paid_amount"); } - currency() { - this._super(); - $.each(cur_frm.doc.timesheets, function(i, d) { - let row = frappe.get_doc(d.doctype, d.name) - set_timesheet_detail_rate(row.doctype, row.name, cur_frm.doc.currency, row.timesheet_detail) - }); - calculate_total_billing_amount(cur_frm) - } - currency() { var me = this; super.currency();