Skip to content

[releases/28.x] [Shopify] Fix missing shop currency mapping on order transactions#9665

Open
onbuyuka wants to merge 1 commit into
releases/28.xfrom
bugs/643244-backport
Open

[releases/28.x] [Shopify] Fix missing shop currency mapping on order transactions#9665
onbuyuka wants to merge 1 commit into
releases/28.xfrom
bugs/643244-backport

Conversation

@onbuyuka

@onbuyuka onbuyuka commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of bug #641570 to releases/28.x.

Fixes AB#643244

Original PR: #8679

@onbuyuka
onbuyuka requested a review from a team July 22, 2026 11:41
@onbuyuka
onbuyuka requested a review from a team as a code owner July 22, 2026 11:41
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Integration GitHub request for Integration area labels Jul 22, 2026
@github-actions github-actions Bot added this to the Version 28.4 milestone Jul 22, 2026
)

## Problem
The `amountSet.shopMoney.currencyCode` was no longer mapped to the
`Currency` field on `Shpfy Order Transaction` records. This regression
was introduced in commit acd8280
(presentment currency support) where the existing
`shopMoney.currencyCode` mapping was accidentally **replaced** by the
new `presentmentMoney` lines instead of being kept alongside them.

This causes the **Currency** column on the **Shopify Order
Transactions** page to show stale/incorrect values from prior sync runs
or remain empty for new transactions - while
`TranslateCurrencyCode(OrderTransaction.Currency)` is called expecting
the field to be populated.

## Root Cause
In commit
[acd8280](acd8280#diff-59120ecd686f94a2f2778d8fe2529eabab25319f10f8ee62ff1f5485d7eb7850),
the shopMoney.currencyCode line was replaced by presentmentMoney lines
instead of being kept alongside them.

## Fix
Re-add the missing `amountSet.shopMoney.currencyCode` to `Currency`
mapping, restoring parity with how `amountRoundingSet` correctly handles
both shopMoney and presentmentMoney currency codes in the same block.

## Verification
- The GraphQL query (ShpfyGQLOrderTransactions.Codeunit.al) already
requests `shopMoney { amount currencyCode }` - the data was available
but not being read.
- The `TranslateCurrencyCode` call on line 121 correctly handles the raw
Shopify currency code once populated.
- The `amountRoundingSet` block (lines 99-102) was already correct (both
shopMoney and presentmentMoney mapped).

Fixes
[AB#641570](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/641570)

Ref: ICM 51000001074581

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: onbuyuka <55088871+onbuyuka@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b1f006ac-3ace-495d-8b5c-9b76510cf117
@onbuyuka
onbuyuka force-pushed the bugs/643244-backport branch from e225d39 to 44a763f Compare July 22, 2026 11:54
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 Integration GitHub request for Integration area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants