fix: use correct field name in accounts controller (backport #39884) (#39897)

fix: use correct field name in accounts controller (#39884)

Changes to get advance payments in SI or PI from JV's

(cherry picked from commit b124081065d475c5b042eaf898773b35f1ac5dc6)

Co-authored-by: Rohit Gunjegaonkar <135806454+rohitg-pbspl@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2024-02-14 13:21:55 +05:30 committed by GitHub
parent 375859a25f
commit f08b424972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2651,7 +2651,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)