---
id: change/bcapps/13899
type: change
title: "#13899 Bugfix/issue 13425 shopify wrong curr amount refund"
summary: Fixed Shopify refund sales line creation to use the correct amount when shop and presentment currencies differ.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy create sales doc. refund
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-22T00:57:45.824Z"
  flags: []
generated:
  at: "2026-11-30T10:37:49.603Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8dca9328b6509375a3cac6607012f9fd924f72e5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13899
    title: "microsoft/BCApps#13899: Bugfix/issue 13425 shopify wrong curr amount refund"
    date: "2026-11-20"
    commit: 8dca9328b6509375a3cac6607012f9fd924f72e5
    t: null
    quote: Wrong amount is used to create sales line from refund shipping line when shop currency and presentment currency is not the same.
links:
  learn: []
  objects:
    - object/codeunit/30246
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-orders
      title: Synchronize and fulfill sales orders
      label: possibly related
      why: Documents Shopify sales orders integration including refund processing and currency handling
      by: model
number: 13899
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13899
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-20T13:02:25Z"
author: frankmortensen
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 76
  deletions: 2
  al: 1
apps:
  - Shopify
objects_touched:
  - key: codeunit/30246
    page: codeunit/30246
    type: codeunit
    id: 30246
    name: Shpfy Create Sales Doc. Refund
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 13425
work_items:
  - 658776
systems:
  - integration
quote: Wrong amount is used to create sales line from refund shipping line when shop currency and presentment currency is not the same.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13899 Bugfix/issue 13425 shopify wrong curr amount refund

> Fixed Shopify refund sales line creation to use the correct amount when shop and presentment currencies differ.

[Pull request](https://github.com/microsoft/BCApps/pull/13899) · merged into `main` (BC30) on 2026-11-20 by frankmortensen (community contribution) · 2 files (+76 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Corrects currency amount used in sales line generation from refund shipping lines
- Addresses issue where wrong amount was applied with different shop and presentment currencies
- Updates Shopify order refund processing logic
- Includes test coverage for the refund shipping line scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30246 "Shpfy Create Sales Doc. Refund"](../../objects/codeunit/30246.md), Shopify: modified

## Context

- Fixes: [#13425 [Bug]: Shopify Connector: Wrong amount is used to create sales line from refund shipping line when shop currency and presentment currency is not the same](https://github.com/microsoft/BCApps/issues/13425) (closed)
- Work items: AB#658776
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Integrations
- Systems: integration
- From the description: "Wrong amount is used to create sales line from refund shipping line when shop currency and presentment currency is not the same."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Synchronize and fulfill sales orders](https://learn.microsoft.com/dynamics365/business-central/shopify/synchronize-orders) — possibly related: Documents Shopify sales orders integration including refund processing and currency handling (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
