Merge branch 'develop' into separate-discount-account

This commit is contained in:
Ankush Menat
2022-04-14 17:29:28 +05:30
committed by GitHub
59 changed files with 1341 additions and 1951 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