Skip to content

Commit

Permalink
Merge pull request #1558 from frappe/mergify/bp/version-15-hotfix/pr-…
Browse files Browse the repository at this point in the history
…1553

fix: don't update exchange rate for all references (backport #1553)
  • Loading branch information
krantheman authored Mar 19, 2024
2 parents 1408341 + 02161e4 commit c70603b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hrms/overrides/employee_payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def set_missing_ref_details(
d.reference_doctype, d.reference_name, self.party_account_currency
)

if ref_exchange_rate:
# Only update exchange rate when the reference is Journal Entry
if ref_exchange_rate and d.reference_doctype == "Journal Entry":
ref_details.update({"exchange_rate": ref_exchange_rate})

for field, value in ref_details.items():
Expand Down

0 comments on commit c70603b

Please sign in to comment.