mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-31 15:32:27 +00:00
Merge pull request #56628 from aerele/multi-currency
fix(journal-entry): fetch outstanding on foreign currency
This commit is contained in:
@@ -2530,9 +2530,7 @@ def get_reference_details(
|
|||||||
exchange_rate = get_exchange_rate(party_account_currency, company_currency, ref_doc.posting_date)
|
exchange_rate = get_exchange_rate(party_account_currency, company_currency, ref_doc.posting_date)
|
||||||
else:
|
else:
|
||||||
exchange_rate = 1
|
exchange_rate = 1
|
||||||
outstanding_amount, total_amount = get_outstanding_on_journal_entry(
|
outstanding_amount, total_amount = get_outstanding_on_journal_entry(reference_name, party_type, party)
|
||||||
reference_name, party_type, party
|
|
||||||
)
|
|
||||||
|
|
||||||
elif reference_doctype == "Payment Entry":
|
elif reference_doctype == "Payment Entry":
|
||||||
if reverse_payment_details := frappe.db.get_all(
|
if reverse_payment_details := frappe.db.get_all(
|
||||||
|
|||||||
Reference in New Issue
Block a user