From 5a952987a316185f50d80e7a646d8edb84512105 Mon Sep 17 00:00:00 2001 From: marination Date: Wed, 28 Jun 2023 17:13:34 +0530 Subject: [PATCH] fix: Use `this.frm` (Linter) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 053b1a324c..d21a50c1c3 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -149,8 +149,8 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e ); if (payment_is_overdue) { - cur_frm.add_custom_button(__('Dunning'), function () { - cur_frm.events.create_dunning(cur_frm); + this.frm.add_custom_button(__('Dunning'), () => { + this.frm.events.create_dunning(this.frm); }, __('Create')); } }