mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
fix: incorrect debit credit amount in presentation currency
(cherry picked from commit 83a5fae591)
This commit is contained in:
committed by
mergify-bot
parent
69bf64e238
commit
8663a776dd
@@ -93,10 +93,10 @@ def convert_to_presentation_currency(gl_entries, currency_info, company):
|
||||
account_currency = entry['account_currency']
|
||||
|
||||
if len(account_currencies) == 1 and account_currency == presentation_currency:
|
||||
if entry.get('debit'):
|
||||
if debit_in_account_currency:
|
||||
entry['debit'] = debit_in_account_currency
|
||||
|
||||
if entry.get('credit'):
|
||||
if credit_in_account_currency:
|
||||
entry['credit'] = credit_in_account_currency
|
||||
else:
|
||||
date = currency_info['report_date']
|
||||
|
||||
Reference in New Issue
Block a user