fix: load ignored doctype and include Mode of Payment Account (#40334)

This commit is contained in:
Nihantra C. Patel
2024-03-07 17:43:00 +05:30
committed by GitHub
parent 01856a6e9d
commit 68baa3612a
2 changed files with 2 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ frappe.ui.form.on('Transaction Deletion Record', {
});
function populate_doctypes_to_be_ignored(doctypes_to_be_ignored_array, frm) {
if (!(frm.doc.doctypes_to_be_ignored)) {
if (frm.doc.doctypes_to_be_ignored.length === 0) {
var i;
for (i = 0; i < doctypes_to_be_ignored_array.length; i++) {
frm.add_child('doctypes_to_be_ignored', {

View File

@@ -286,6 +286,7 @@ def get_doctypes_to_be_ignored():
"Bank Account",
"Item Tax Template",
"Mode of Payment",
"Mode of Payment Account",
"Item Default",
"Customer",
"Supplier",