fix: Use this.frm (Linter)

This commit is contained in:
marination 2023-06-28 17:13:34 +05:30
parent 0498a31c42
commit 5a952987a3

View File

@ -149,8 +149,8 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e
); );
if (payment_is_overdue) { if (payment_is_overdue) {
cur_frm.add_custom_button(__('Dunning'), function () { this.frm.add_custom_button(__('Dunning'), () => {
cur_frm.events.create_dunning(cur_frm); this.frm.events.create_dunning(this.frm);
}, __('Create')); }, __('Create'));
} }
} }