Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid gain/loss JE created on base currency Expense Claim #36940

Merged

Conversation

ruthra-kumar
Copy link
Member

If exchange_rate of individual reference is unset, make it 1. If left unset, exchange_gain_loss is calculated leading to an incorrect JE being posted.
part of: frappe/hrms#848

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Sep 4, 2023
@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Merging #36940 (75d95ac) into develop (0e51722) will increase coverage by 0.13%.
Report is 18 commits behind head on develop.
The diff coverage is 50.00%.

@@             Coverage Diff             @@
##           develop   #36940      +/-   ##
===========================================
+ Coverage    65.42%   65.55%   +0.13%     
===========================================
  Files          794      796       +2     
  Lines        62194    62717     +523     
===========================================
+ Hits         40690    41114     +424     
- Misses       21504    21603      +99     
Files Changed Coverage
...xt/accounts/doctype/payment_entry/payment_entry.py 50.00%

@ruthra-kumar ruthra-kumar merged commit 04bc353 into frappe:develop Sep 4, 2023
13 checks passed
@ruthra-kumar ruthra-kumar added the backport version-14-hotfix backport to version 14 label Sep 4, 2023
ruthra-kumar added a commit that referenced this pull request Sep 4, 2023
…-36940

fix: invalid gain/loss JE created on base currency Expense Claim (backport #36940)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant