From b124081065d475c5b042eaf898773b35f1ac5dc6 Mon Sep 17 00:00:00 2001 From: Rohit Gunjegaonkar <135806454+rohitg-pbspl@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:08:36 +0530 Subject: [PATCH] fix: use correct field name in accounts controller (#39884) Changes to get advance payments in SI or PI from JV's --- erpnext/controllers/accounts_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 308a134ded..34eff77a2b 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -2691,7 +2691,7 @@ def get_advance_journal_entries( if order_list: q = q.where( - (journal_acc.reference_type == order_doctype) & ((journal_acc.reference_type).isin(order_list)) + (journal_acc.reference_type == order_doctype) & ((journal_acc.reference_name).isin(order_list)) ) q = q.orderby(journal_entry.posting_date)