refactor: pass dimension details to query
(cherry picked from commit 5dc22e1811)
# Conflicts:
# erpnext/accounts/utils.py
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user