Uh oh!
There was an error while loading. Please reload this page.
Closed
Implement multi-currency protocol for international business scenarios#97
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
CopilotAI
changed the title
[WIP] Implement robust multi-currency solution for forms and gridsImplement multi-currency protocol for international business scenariosJan 24, 2026
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 freeto 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.
Adds Salesforce-pattern multi-currency support: compound value storage (native + converted), configurable aggregation/sorting strategies, and Intl-compatible formatting.
Implementation
System Protocol (
src/system/currency.zod.ts)convert_to_corporate|convert_to_user|group_by_currencyconvert_to_corporate|convert_to_user|native_valueData Protocol (
src/data/currency.zod.ts)CurrencyCodefor compile-time validationField Enhancement (
src/data/field.zod.ts)currencyCode,allowCurrencyChange,restrictedCurrencies,showConversion,roundingModeUsage
Design Decisions
CurrencyCodetype (ISO 4217 validated) used throughout, not stringsTest Coverage: 60 tests (31 system + 29 data), validates edge cases (JPY 0-decimal, negatives, cross-currency calculations)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.