mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
Merge pull request #49599 from KerollesFathy/fix-get-payment-mode-account
fix(accounts): reference get_payment_mode_account correctly in Sales Invoice
This commit is contained in:
@@ -265,7 +265,7 @@ 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