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: Incorrect exchange rate in payment entries #33481

Merged

Conversation

deepeshgarg007
Copy link
Member

@deepeshgarg007 deepeshgarg007 commented Dec 29, 2022

Make source_exchange_rate as some arbitrary value using browser console or UI.
The target_exchange_rate also gets updated to the same value even though both the paid_from_account_currency and paid_to_account_currency are same as Company currency (Non multi currency transactions)

The server side updation was not getting triggered because of the following check hence removed it.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Dec 29, 2022
@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

Merging #33481 (7defb50) into develop (58ad79d) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #33481   +/-   ##
========================================
  Coverage    64.18%   64.18%           
========================================
  Files          819      819           
  Lines        59040    59040           
========================================
  Hits         37893    37893           
  Misses       21147    21147           
Impacted Files Coverage Δ
...xt/accounts/doctype/payment_entry/payment_entry.py 72.68% <100.00%> (ø)
erpnext/stock/doctype/serial_no/serial_no.py 89.20% <0.00%> (-0.24%) ⬇️
...xt/accounts/doctype/sales_invoice/sales_invoice.py 81.88% <0.00%> (+0.08%) ⬆️

@deepeshgarg007 deepeshgarg007 merged commit 0ed938a into frappe:develop Jan 10, 2023
mergify bot pushed a commit that referenced this pull request Jan 10, 2023
* fix: Incorrect exchange rate in payment entries

* test: Update failing tests

(cherry picked from commit 0ed938a)
mergify bot pushed a commit that referenced this pull request Jan 10, 2023
* fix: Incorrect exchange rate in payment entries

* test: Update failing tests

(cherry picked from commit 0ed938a)

# Conflicts:
#	erpnext/buying/doctype/purchase_order/test_purchase_order.py
deepeshgarg007 added a commit that referenced this pull request Jan 10, 2023
fix: Incorrect exchange rate in payment entries (#33481)

* fix: Incorrect exchange rate in payment entries

* test: Update failing tests

(cherry picked from commit 0ed938a)

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
frappe-pr-bot pushed a commit that referenced this pull request Jan 10, 2023
## [14.12.1](v14.12.0...v14.12.1) (2023-01-10)

### Bug Fixes

* **accounts:** currency fields no longer read as strings by validation function in Payment Entry ([#33535](#33535)) ([44a95da](44a95da))
* better handling of duplicate bundle items ([b96a97f](b96a97f))
* customer/supplier quick entry dialog ([#33496](#33496)) ([914e2fd](914e2fd))
* don't check other warehouse ledgers to calculate valuation rate ([ab0a2b4](ab0a2b4))
* Exchange gain and loss booking on multi-currency invoice reconciliation ([#32900](#32900)) ([fe82ebc](fe82ebc))
* Exchange gain and loss booking on multi-currency invoice reconciliation ([#32900](#32900)) ([259639a](259639a))
* Incorrect exchange rate in payment entries ([#33481](#33481)) ([e995e95](e995e95))
* incorrect status in the work order ([2658fc9](2658fc9))
* incorrect warehouse and selling amount on bundled products ([#33549](#33549)) ([c6c3ac3](c6c3ac3))
* RFQ emails not sent with pdf attachment ([#33604](#33604)) ([34df9ab](34df9ab))
* **stock entry:** wrong valuation rate in repack ([#33579](#33579)) ([a92b4e7](a92b4e7))
* Timeout error while saving the purchase invoice ([#33577](#33577)) ([d2e3701](d2e3701))

### Performance Improvements

* Drop `name` part from posting sort index ([#33551](#33551)) ([f501575](f501575))
@barredterra barredterra mentioned this pull request Mar 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-13-hotfix 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.

None yet

1 participant