Feat(admin/currencies): add CurrencyRate field and bulk rate update#1525
Open
suatsuphi wants to merge 1 commit into
Open
Feat(admin/currencies): add CurrencyRate field and bulk rate update#1525suatsuphi wants to merge 1 commit into
suatsuphi wants to merge 1 commit into
Conversation
- Added `CurrencyRate` property to ExchangeRate and CurrencyModel for visual display - Implemented simple calculation: CurrencyRate = (Rate == 0 ? 0 : 1 / Rate) - Updated CurrencyUpdate logic to recalc Rate when CurrencyRate differs (epsilon tolerance) - Introduced "ApplyRatesToAll" button to update all currencies with live exchange rates - Added UI confirm prompt for bulk rate application
Contributor
|
Why is |
Contributor
Author
|
The user doesn’t want to update exchange rates automatically. If they want to update the rates on that particular day, they have to go to TASK, find ‘Update Currencies’ and run it manually. There is no 'Update Exchange Rate' button in the exchange rate section - just one by one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CurrencyRateproperty in ExchangeRate and CurrencyModelLanguage resource additions for currency rate updates
Admin.Configuration.Currencies.ApplyRatesToAll → Action key for applying exchange rates to all currencies.
Admin.Configuration.Currencies.Q_ApplyRatesToAll → Confirmation message key: “Exchange rates will be applied to all currencies. Do you want to continue?”
Admin.Configuration.Currencies.Fields.CurrencyRate → Field label key for displaying the conversion currency rate.
The Central Bank of Turkey publishes exchange rates on a daily basis. It does not provide rates!
model.CurrencyRate = model.Rate == 0 ? 0 : 1.0M / model.Rate;The Currency Rate can be saved on the _Grid.Currencies.cshtml page... If a Currency Rate has been entered, the rate can be calculated.
Code - CurrencyUpdate
Code - ApplyRatesToAllCurrencies
```