Merge pull request #41177 from frappe/mergify/bp/version-15-hotfix/pr-41142

fix: mode of payment has precedance in Payment Entry (backport #41142)
This commit is contained in:
ruthra kumar
2024-04-25 08:55:20 +05:30
committed by GitHub

View File

@@ -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);
}