refactor: pass dimension details to query

(cherry picked from commit 5dc22e1811)

# Conflicts:
#	erpnext/accounts/utils.py
This commit is contained in:
ruthra kumar
2023-12-20 17:19:27 +05:30
committed by Mergify
parent b2db6d0546
commit dac422a0e1
3 changed files with 20 additions and 5 deletions

View File

@@ -630,6 +630,11 @@ def update_reference_in_payment_entry(
if d.difference_amount is not None
else payment_entry.get_exchange_rate(),
"exchange_gain_loss": d.difference_amount,
<<<<<<< HEAD
=======
"account": d.account,
"dimensions": d.dimensions,
>>>>>>> 5dc22e1811 (refactor: pass dimension details to query)
}
if d.voucher_detail_no:
@@ -1991,6 +1996,7 @@ def create_gain_loss_journal(
ref2_dn,
ref2_detail_no,
cost_center,
dimensions,
) -> str:
journal_entry = frappe.new_doc("Journal Entry")
journal_entry.voucher_type = "Exchange Gain Or Loss"