diff --git a/erpnext/accounts/doctype/accounts_settings/accounts_settings.js b/erpnext/accounts/doctype/accounts_settings/accounts_settings.js index 0627675de792880a5715caf35bcae32f6dbaff7d..967f7d89280050594dbbf2b04ecf6b9d9c10e0d6 100644 --- a/erpnext/accounts/doctype/accounts_settings/accounts_settings.js +++ b/erpnext/accounts/doctype/accounts_settings/accounts_settings.js @@ -4,5 +4,18 @@ frappe.ui.form.on('Accounts Settings', { refresh: function(frm) { - } + let msg = __("Enabling this will change the way how cancelled transactions are handled."); + msg += " "; + msg += __("Please enable only if the understand the effects of enabling this."); + msg += "
"; + msg += __("Do you still want to enable immutable ledger?"); + + frappe.confirm( + msg, + () => {}, + () => { + frm.set_value("enable_immutable_ledger", 0); + } + ); + }, }); diff --git a/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js b/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js index c1ff27dde7f192cce6f037bedb8565c290231631..b69c0d7574e89209a4f0bc5b96289f320fe1cbb0 100644 --- a/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js +++ b/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js @@ -30,7 +30,7 @@ frappe.ui.form.on('Plaid Settings', { "Bank Transaction", "", true, - "Bank Transaction" + __("Bank Transaction") ); frappe.msgprint({