Skip to content

fix(exchange): allow direct exchange rate entry relative to the stronger currency#8631

Open
Bharadwaj-2024 wants to merge 1 commit intothird-culture-software:masterfrom
Bharadwaj-2024:fix/exchange-rate-strong-currency-input
Open

fix(exchange): allow direct exchange rate entry relative to the stronger currency#8631
Bharadwaj-2024 wants to merge 1 commit intothird-culture-software:masterfrom
Bharadwaj-2024:fix/exchange-rate-strong-currency-input

Conversation

@Bharadwaj-2024
Copy link
Copy Markdown

…rrency

When the enterprise currency is weak, users can now enter exchange rates directly relative to the strong currency (e.g. 1 USD = 920 CDF) instead of being forced to enter fractional values (e.g. 0.00108).

  • Detect weak currency scenario (rate < 1) in exchange modal
  • Swap input labels to show '1 Foreign = ? Enterprise' for weak currencies
  • Convert user input back to internal format (1/rate) on submit
  • Per-currency display logic in bhExchangeRate header component
  • Human-readable rate display in exchange rate list (bhExchange)
  • Updated i18n hints (en/fr)
  • No changes to database schema, SQL procedures, or conversion logic

…rrency

When the enterprise currency is weak, users can now enter exchange rates
directly relative to the strong currency (e.g. 1 USD = 920 CDF) instead
of being forced to enter fractional values (e.g. 0.00108).

- Detect weak currency scenario (rate < 1) in exchange modal
- Swap input labels to show '1 Foreign = ? Enterprise' for weak currencies
- Convert user input back to internal format (1/rate) on submit
- Per-currency display logic in bhExchangeRate header component
- Human-readable rate display in exchange rate list (bhExchange)
- Updated i18n hints (en/fr)
- No changes to database schema, SQL procedures, or conversion logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant