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:
Diptanil Saha
2025-10-27 22:19:27 +05:30
committed by GitHub

View File

@@ -265,7 +265,7 @@ erpnext.accounts.pos = {
frappe.ui.form.on(doctype, {
mode_of_payment: function (frm, 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);
});
},