By Anant MishraDesign study
Fictional quotes and reporting inputs. Eight local conversion-contract cases and one rounding comparison were reproduced offline. Actual provider rates, ERP behaviour and approved accounting policies require separate evidence.
Design feature 01
8 synthetic cases
Design feature 02
2 equivalent quotes
Design feature 03
1 rounding comparison
Executive Summary
Eight authored cases preserve quote units, select a declared context and compare a fictional rounding outcome using exact rational arithmetic.
Architectural Deep Dive
Design study. A fictional group is preparing a GBP management-reporting feed from several ERPs. Two sources describe the same EUR/GBP relationship differently. The integration team wants a contract that preserves the quote units, selects the intended context and produces a conversion that finance can reconstruct from retained inputs.
Define the fixture before the adapter
The exercise uses invented quotes and source amounts. It has one requested effective date and a rate purpose named “management-demo.” A quote contains a base currency and amount, plus a quote currency and amount. A conversion request supplies its own source and target currency. The verifier supports one direct pair or its inverse, with an explicit identity path for an amount already in the requested currency.
Business Central’s exchange-rate documentation gives a concrete reason to retain the unit amounts. It describes a calculation involving both an Exchange Rate Amount and a Relational Exchange Rate Amount. Dynamics 365 Finance’s conversion-function documentation separately demonstrates the importance of source, target, date and company context. The proposed cross-system contract makes its own selection rules explicit.
Reproduce two representations of one quote
In the first synthetic case, 100 EUR corresponds to 80 GBP. A request to translate EUR 100 into GBP follows the quote’s direction. The arithmetic is 100 divided by 100, multiplied by 80, yielding GBP 80. The base amount of 100 is retained in the fixture and included in the calculation.
The second case stores 1 GBP against 1.25 EUR. The same EUR-to-GBP request uses the inverse direction and also yields GBP 80. These two fixtures check whether the implementation interprets the quote fields consistently. An adapter that always multiplies by the supplied quote amount would produce different results and fail the expected-output check.
The ECB’s reference-rate page explicitly identifies its base currency and informational purpose. It is cited for that presentation convention. All quote values in this exercise are invented, with their own labels and a separate fixture boundary.
Exercise the identity and rejection paths
A third case receives GBP 80 and requests GBP. The identity result remains GBP 80 and records that no cross-currency calculation was needed. This path gives the reviewer a way to see that the amount already carries the target unit. Its source-system provenance would still be needed in an operational feed.
Five further cases require a visible rejection. One has a cross-currency request with no quote. Another supplies a quote for the wrong currency pair. The next two use a quote with the wrong effective date or rate purpose. The final case gives the quote a zero base amount, which cannot define the supported ratio. Each fixture declares its expected reason, and the verifier checks it independently.
The local policy requires the quote date to match exactly. A reporting adapter using a valid-from policy or business-day calendar would need different selection logic and boundary cases. A reviewer should be able to distinguish a rejected request from a successfully converted zero amount. Replacing an unavailable rate with zero would remove that distinction.
Keep a rounding comparison alongside the conversion
The fixture also compares three EUR 0.01 rows under an invented 0.50 GBP-per-EUR quote. Their exact converted values are GBP 0.005 each. Round-half-up at row level produces a GBP 0.03 sum. Rounding the GBP 0.015 aggregate once gives GBP 0.02. Both results are retained with the method that produced them.
For the fictional workshop, the team would show the two outcomes to the report owner and ask which grain the actual reporting policy requires. The input records, sign handling and source-system rounding would then become part of the implementation review. The exercise makes the consequence observable without assigning a policy to a real group.
Retain the result and the boundary
The eight-case fixture, offline verifier and reproduction guide can be saved together. The execution record preserves the actual local run time, source/input hashes and results. Exact rational arithmetic is used for the conversion and the declared rounding calculation.
The local run checks these authored inputs. An operational rehearsal needs authorised amounts, the actual provider and ERP field definitions, approved rate selection and rounding policies, and comparison with the reporting system’s output. Triangulation, spreads, fees, rate-provider availability and statutory accounting treatment would require their own scope and evidence. The companion essay explains the data-contract decisions, and the ERP architecture paper provides the wider platform context.
Proposed approach
- Scope
- One direct or inverse pair and an explicit identity path
- Evidence
- Fictional unit amounts, context fields and retained exact outputs
Sources
- Update currency exchange rates — Microsoft Business Central documentation; checked 20 November 2026
- CONVERTCURRENCY ER function — Microsoft Dynamics 365 Finance documentation; checked 20 November 2026
- Euro foreign exchange reference rates — quote convention and purpose — European Central Bank; checked 20 November 2026
Related reading
Read the publishing standards or suggest a correction.