#14060 [Shopify] Automatically move negative exchange lines
Shopify shop configurations now offer an option to automatically move negative exchange lines from return orders into separate sales documents (orders or invoices) before release, with rollback protection and enhanced warning handling.
- 12files
- 10AL files
- 4objects
Pull request · merged into main (BC30) on 2026-12-01 by onbuyuka · 12 files (+720 -1), 10 AL · feature · tier official · reviewed (checked by Opus)
What changed
- New shop-level setting ‘Move Negative Lines To’ with options: Do Not Move (default), Sales Order, or Sales Invoice
- Automatic movement applies when processing Shopify exchanges, reusing standard copy routines while preserving Shopify identifiers and links
- Existing Auto Release toggle controls both the original return document and its auto-generated replacement
- Enhanced error handling with rollback: blocked entities raise original errors to prevent partial completion
- Overload added to Copy Document Mgt codeunit and propagated across all localization layers (ES, IT, NA, NL, RU, W1)
- Behaviour changes for users or extensions.
AL objects touched
- Page 30101 “Shpfy Shop Card”, Shopify: modified
- Table 30102 “Shpfy Shop”, Shopify: modified
- Codeunit 30246 “Shpfy Create Sales Doc. Refund”, Shopify: modified
- Codeunit 6620 “Copy Document Mgt.”, Base Application: modified
src/Apps/W1/Shopify/App/src/Order Return Refund Processing/Enums/ShpfyMoveNegativeLinesTo.Enum.al: added, not in the BC30 snapshot yetsrc/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#659113
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration, platform
- From the description: “Automatic movement applies to sales return orders and reuses the standard move routine before release, preserving Shopify identifiers and document links.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Creating and Interacting with an OData V4 Bound Action — possibly related: touches Codeunit 6620 “Copy Document Mgt.”
- Extending Shopify — possibly related: touches Table 30102 “Shpfy Shop”
- Manually create contract lines — possibly related: Documents contract line types and negative quantity handling for subscription billing (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).