mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
Merge pull request #50243 from frappe/mergify/bp/version-15-hotfix/pr-49599
fix(accounts): reference get_payment_mode_account correctly in Sales Invoice (backport #49599)
This commit is contained in:
@@ -237,10 +237,10 @@ erpnext.accounts.pos = {
|
|||||||
frappe.ui.form.on(doctype, {
|
frappe.ui.form.on(doctype, {
|
||||||
mode_of_payment: function(frm, cdt, cdn) {
|
mode_of_payment: function(frm, cdt, cdn) {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
get_payment_mode_account(frm, d.mode_of_payment, function(account){
|
erpnext.accounts.pos.get_payment_mode_account(frm, d.mode_of_payment, function (account) {
|
||||||
frappe.model.set_value(cdt, cdn, 'account', account)
|
frappe.model.set_value(cdt, cdn, "account", account);
|
||||||
})
|
});
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user