Error in recalculating product values when switching currencies in quotes and invoices. #10519
Labels
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Severity: Moderate
Key function failed, but no or little impact
Status: Team Investigating
Labels for issues in which the Core Team are investigating / Intend to Investigate
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
In the Currency module, create a new currency with the following details:
Currency Name: Colon
Conversion Rate: 526.2700000000
Next, create a product using this currency (COLON) and set its price to 410.00.
When I go to the Quotes module (this also occurs in the Invoice module), I add the product, and with the currency dropdown set to COLON, it correctly displays the price as 410.00. However, if I switch the currency dropdown to another currency and then back to COLON, the price is recalculated as 410.49.
Link to the reported error in the community: https://community.suitecrm.com/t/incorrect-calculation-of-product-prices-in-invoices-and-quotes-when-using-a-currency-other-than-the-dollar/
Note: This scenario also occurs in SuiteCRM 7.14.5
Possible Fix
Review the JS function that performs the recalculation for the dropdown.
Steps to Reproduce the Issue
1 - Add a second currency - including a conversion rate 2 - Create a product in the added currency 3 - Create a quote 4 - Switch to the added currency 5 - Add the product 6 - Switch to USD 7 - Switch to the added currency
Context
No response
Version
8.6.2
What browser are you currently using?
Chrome
Browser Version
Version 124.0.6367.60 (Official Build) (64-bit)
Environment Information
PHP: 8.1.29
Operating System and Version
Ubuntu 22.04.4 LTS
The text was updated successfully, but these errors were encountered: