diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.js b/erpnext/accounts/doctype/payment_entry/payment_entry.js index 2145812f38b..6738743793d 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.js +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.js @@ -1334,7 +1334,9 @@ frappe.ui.form.on("Payment Entry", { }, callback: function (r) { if (r.message) { - frm.set_value(field, r.message.account); + if (!frm.doc.mode_of_payment) { + frm.set_value(field, r.message.account); + } frm.set_value("bank", r.message.bank); frm.set_value("bank_account_no", r.message.bank_account_no); }