Merge pull request #38775 from frappe/mergify/bp/version-15-hotfix/pr-38766

fix: validation error on reconciling PE to Journals as Invoice (backport #38766)
This commit is contained in:
ruthra kumar 2023-12-15 14:41:55 +05:30 committed by GitHub
commit 5beea361fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -657,8 +657,10 @@ def update_reference_in_payment_entry(
"total_amount": d.grand_total,
"outstanding_amount": d.outstanding_amount,
"allocated_amount": d.allocated_amount,
"exchange_rate": d.exchange_rate if d.exchange_gain_loss else payment_entry.get_exchange_rate(),
"exchange_gain_loss": d.exchange_gain_loss,
"exchange_rate": d.exchange_rate
if d.difference_amount is not None
else payment_entry.get_exchange_rate(),
"exchange_gain_loss": d.difference_amount,
"account": d.account,
}