feat: remove obsolete "debit_to" field
diff --git a/erpnext/accounts/doctype/dunning/dunning.js b/erpnext/accounts/doctype/dunning/dunning.js
index e5a5e1f..99b408a 100644
--- a/erpnext/accounts/doctype/dunning/dunning.js
+++ b/erpnext/accounts/doctype/dunning/dunning.js
@@ -23,15 +23,7 @@
 				}
 			};
 		});
-		frm.set_query("debit_to", () => {
-			return {
-				filters: {
-					"account_type": "Receivable",
-					"is_group": 0,
-					"company": frm.doc.company
-				}
-			};
-		});
+
 		frm.set_query("contact_person", erpnext.queries.contact_query);
 		frm.set_query("customer_address", erpnext.queries.address_query);
 		frm.set_query("company_address", erpnext.queries.company_address_query);
@@ -113,28 +105,6 @@
 				}
 			}
 		}
-		frm.trigger("set_debit_to");
-	},
-	set_debit_to: function(frm) {
-		if (frm.doc.customer && frm.doc.company) {
-			return frappe.call({
-				method: "erpnext.accounts.party.get_party_account",
-				args: {
-					company: frm.doc.company,
-					party_type: "Customer",
-					party: frm.doc.customer,
-					currency: erpnext.get_currency(frm.doc.company)
-				},
-				callback: function (r) {
-					if (!r.exc && r.message) {
-						frm.set_value("debit_to", r.message);
-					}
-				}
-			});
-		}
-	},
-	customer: function (frm) {
-		frm.trigger("set_debit_to");
 	},
 	currency: function (frm) {
 		// this.set_dynamic_labels();
diff --git a/erpnext/accounts/doctype/dunning/dunning.json b/erpnext/accounts/doctype/dunning/dunning.json
index 1dd05b7..fc2ccc7 100644
--- a/erpnext/accounts/doctype/dunning/dunning.json
+++ b/erpnext/accounts/doctype/dunning/dunning.json
@@ -54,7 +54,6 @@
   "accounting_details_section",
   "cost_center",
   "income_account",
-  "debit_to",
   "amended_from"
  ],
  "fields": [
@@ -350,14 +349,6 @@
    "print_hide": 1
   },
   {
-   "fieldname": "debit_to",
-   "fieldtype": "Link",
-   "label": "Debit To",
-   "options": "Account",
-   "print_hide": 1,
-   "reqd": 1
-  },
-  {
    "fieldname": "section_break_9",
    "fieldtype": "Section Break",
    "label": "Currency"