fix: mode of payment has precedance
Mode of Payment is given precedence over company/party bank account
(cherry picked from commit 4aef969879)
This commit is contained in:
@@ -1088,7 +1088,9 @@ frappe.ui.form.on('Payment Entry', {
|
|||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if (r.message) {
|
if (r.message) {
|
||||||
|
if (!frm.doc.mode_of_payment) {
|
||||||
frm.set_value(field, r.message.account);
|
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