mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-02 21:18:27 +00:00
fix: Use this.frm (Linter)
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user