Merge pull request #30710 from deepeshgarg007/advance_jv_allocation

fix: Exchange gain and loss on advance Journal Entry allocation
This commit is contained in:
Deepesh Garg
2022-04-14 15:10:04 +05:30
committed by GitHub
4 changed files with 64 additions and 2 deletions

View File

@@ -1997,12 +1997,13 @@ def get_advance_journal_entries(
reference_condition = " and (" + " or ".join(conditions) + ")" if conditions else ""
# nosemgrep
journal_entries = frappe.db.sql(
"""
select
"Journal Entry" as reference_type, t1.name as reference_name,
t1.remark as remarks, t2.{0} as amount, t2.name as reference_row,
t2.reference_name as against_order
t2.reference_name as against_order, t2.exchange_rate
from
`tabJournal Entry` t1, `tabJournal Entry Account` t2
where