Skip to content

Slice 637899: [Expense Agent] More currencies and countries#8928

Open
BardurKnudsen wants to merge 3 commits into
mainfrom
features/637899-moreCC
Open

Slice 637899: [Expense Agent] More currencies and countries#8928
BardurKnudsen wants to merge 3 commits into
mainfrom
features/637899-moreCC

Conversation

@BardurKnudsen

@BardurKnudsen BardurKnudsen commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Adding more country/region codes and currencies, according to standard ISO lists.

fixes AB#637899

@BardurKnudsen BardurKnudsen requested review from a team June 30, 2026 13:10
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Jun 30, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jun 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Copilot PR Review

Iteration 1 · Outcome: completed

Knowledge source: https://github.com/microsoft/BCQuality@822cae1b2771ac25f665f73369f69093bd4fd630

Orchestrator pre-filter (13 file(s) excluded)

  • layer-disabled (knowledge) : 13 file(s)

Findings produced by the Copilot CLI agent against BCQuality at 822cae1b2771ac25f665f73369f69093bd4fd630. Reply 👎 on any inline comment to flag false positives.

@github-actions github-actions Bot added the needs-approval Workflow runs require maintainer approval to start label Jul 1, 2026
@t-prda t-prda requested a review from Copilot July 1, 2026 13:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands demo/test support for additional currencies (and trims some localization-specific country/region demo creators), aligning the demo datasets with broader ISO-style coverage for the “Expense Agent” scenario.

Changes:

  • Adds many additional currency codes to demo currency data and Contoso demo exchange rates.
  • Updates multiple localized Create Currency codeunits to include expanded currency-name mappings and new label constants.
  • Adds missing test initialization in an SCM costing batch test, and removes several localization-specific Create Country/Region codeunits.

Reviewed changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
src/Layers/W1/Tests/SCM/SCMCostingBatch.Codeunit.al Ensures the affected test runs required initialization before currency/setup-dependent logic.
src/Layers/W1/DemoTool/CreateCurrency.Codeunit.al Expands currency description mapping and label set for demo currency creation.
src/Layers/NZ/DemoTool/CreateCurrency.Codeunit.al Same currency expansion/mapping updates for NZ layer demo tool.
src/Layers/NL/DemoTool/CreateCurrency.Codeunit.al Same currency expansion/mapping updates for NL layer demo tool.
src/Layers/NA/DemoTool/CreateCurrency.Codeunit.al Same currency expansion/mapping updates for NA layer demo tool.
src/Layers/IN/DemoTool/CreateCurrency.Codeunit.al Same currency expansion/mapping updates for IN layer demo tool.
src/Layers/FR/DemoTool/CreateCurrency.Codeunit.al Same currency expansion/mapping updates for FR layer demo tool.
src/Layers/CA/DemoTool/CreateCurrency.Codeunit.al Same currency expansion/mapping updates for CA layer demo tool.
src/Layers/RU/DemoTool/CreateCountryRegion.Codeunit.al Removes RU-layer country/region demo creator codeunit.
src/Layers/CH/DemoTool/CreateCountryRegion.Codeunit.al Removes CH-layer country/region demo creator codeunit.
src/Layers/BE/DemoTool/CreateCountryRegion.Codeunit.al Removes BE-layer country/region demo creator codeunit (including IBAN flagging logic).
src/Layers/APAC/DemoTool/CreateCountryRegion.Codeunit.al Removes APAC-layer country/region demo creator codeunit.
src/DemoTool/Pictures/CurrencyData.TXT Adds many new currency rows to the demo tool’s currency seed data.
src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/Contoso Helpers/ContosoCurrency.Codeunit.al Minor reordering of currency field validations during currency insert.
src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Finance/2.Master data/CreateCurrencyExchangeRate.Codeunit.al Adds exchange rates for the newly introduced currency codes in the Contoso dataset.
src/Apps/W1/ContosoCoffeeDemoDataset/app/.resources/CurrencyData.TXT Mirrors the expanded currency seed data for the Contoso dataset resources.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 665 to +668
'':
exit('');
else
Error(CountryCodeDoesNotExistErr);
exit(CurrencyCode);
exit('');
else
Error(CountryCodeDoesNotExistErr);
exit(CurrencyCode);
exit('');
else
Error(CountryCodeDoesNotExistErr);
exit(CurrencyCode);
exit('');
else
Error(CountryCodeDoesNotExistErr);
exit(CurrencyCode);
exit('');
else
Error(CountryCodeDoesNotExistErr);
exit(CurrencyCode);
exit('');
else
Error(CountryCodeDoesNotExistErr);
exit(CurrencyCode);
XEuroTxt: Label 'Euro';
XAustraliandollarTxt: Label 'Australian dollar';
XBulgarianlevaTxt: Label 'Bulgarian leva';
XBruneiDarussalemdollarTxt: Label 'Brunei Darussalem dollar';
XSwedishkronaTxt: Label 'Swedish krona';
XSingaporedollarTxt: Label 'Singapore dollar';
XSloveniantolarTxt: Label 'Slovenian tolar';
XSaudiArabianryialTxt: Label 'Saudi Arabian ryial';
XSwazilandlilangeniTxt: Label 'Swaziland lilangeni';
XSlovakKorunaTxt: Label 'Slovak Koruna';
XSerbianDinarTxt: Label 'Serbian Dinar';
XTunesiandinarTxt: Label 'Tunesian dinar';
Comment on lines +155 to +156
XAD;396;1;0.01;0.001;0.01;0;100;330;0;02:02;02:05
XAF;950;1;1;0.1;1;0;100;665;0;00:00;00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 needs-approval Workflow runs require maintainer approval to start

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants