From 0da8ed2daa9ae2a2b5d6c37c957bbd78cfe4e8e5 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Tue, 15 Jul 2025 16:45:58 +0530 Subject: [PATCH] fix: fix party account field access --- erpnext/public/js/controllers/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 3e7bc8933c1..b60f21aa607 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -1019,7 +1019,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe } var party = me.frm.doc[frappe.model.scrub(party_type)]; - if(party && me.frm.doc.company && (!me.frm.doc.__onload?.load_after_mapping || !me.frm.doc.get(party_account_field))) { + if(party && me.frm.doc.company && (!me.frm.doc.__onload?.load_after_mapping || !me.frm.doc[party_account_field])) { return frappe.call({ method: "erpnext.accounts.party.get_party_account", args: {