mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
Merge pull request #41142 from ruthra-kumar/toggle_auto_bank_account_update
fix: mode of payment has precedance in Payment Entry
This commit is contained in:
@@ -1334,7 +1334,9 @@ frappe.ui.form.on("Payment Entry", {
|
|||||||
},
|
},
|
||||||
callback: function (r) {
|
callback: function (r) {
|
||||||
if (r.message) {
|
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", r.message.bank);
|
||||||
frm.set_value("bank_account_no", r.message.bank_account_no);
|
frm.set_value("bank_account_no", r.message.bank_account_no);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user