---
id: change/bcapps/13883
type: change
title: "#13883 [Shopify] Initialize return processing for existing shops on upgrade"
summary: A per-company upgrade step sets Process Returns As to Credit Memo for existing Shopify shops that still hold the uninitialized 0 (Quote) value, so refunds no longer create sales quotes. Credit Memo and Return Order settings are kept as they are.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit shpfy upgrade mgt.
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-11-13T00:59:29.577Z"
  flags: []
generated:
  at: "2026-11-13T00:13:31.718Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d8faae5488fcc0b35dba32d15b77b1c2d4e53000
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13883
    title: "microsoft/BCApps#13883: [Shopify] Initialize return processing for existing shops on upgrade"
    date: "2026-11-12"
    commit: d8faae5488fcc0b35dba32d15b77b1c2d4e53000
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/30106
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 13883
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13883
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-12T13:03:15Z"
author: onbuyuka
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 95
  deletions: 0
  al: 1
apps:
  - Shopify
objects_touched:
  - key: codeunit/30106
    page: codeunit/30106
    type: codeunit
    id: 30106
    name: Shpfy Upgrade Mgt.
    app: Shopify
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13890
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13890
fixes_issues: []
work_items:
  - 658645
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13883 [Shopify] Initialize return processing for existing shops on upgrade

> A per-company upgrade step sets Process Returns As to Credit Memo for existing Shopify shops that still hold the uninitialized 0 (Quote) value, so refunds no longer create sales quotes. Credit Memo and Return Order settings are kept as they are.

[Pull request](https://github.com/microsoft/BCApps/pull/13883) · merged into `main` (BC30) on 2026-11-12 by onbuyuka · 2 files (+95 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Adds per-company upgrade migration to change only Quote/0 values to Credit Memo in existing shops
- Preserves valid Credit Memo and Return Order selections already configured by users
- Registers upgrade tag for new companies to prevent duplicate migrations
- Includes two regression tests for migration behavior and upgrade-tag guard logic
- Does not repair sales quotes already created before upgrade
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 30106 "Shpfy Upgrade Mgt."](../../objects/codeunit/30106.md), Shopify: modified

## Also merged into

- [#13890](https://github.com/microsoft/BCApps/pull/13890) into `releases/29.x` on 2026-11-12

## Context

- Work items: AB#658645
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration

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).
