Skip to content

[Shopify] Fix Shopify refund/return deletion wiping all lines#7320

Open
onbuyuka wants to merge 2 commits intomainfrom
onbuyuka/fix-shopify-refund-return-line-deletion
Open

[Shopify] Fix Shopify refund/return deletion wiping all lines#7320
onbuyuka wants to merge 2 commits intomainfrom
onbuyuka/fix-shopify-refund-return-line-deletion

Conversation

@onbuyuka
Copy link
Contributor

@onbuyuka onbuyuka commented Mar 23, 2026

Summary

  • Bug 626081: Deleting a single Shopify refund or return header deletes lines for all refunds/returns, not just the deleted one
  • Root cause: SetRange("Field Name") in OnDelete triggers was called without a value parameter, which clears the filter instead of setting it — causing DeleteAll to wipe the entire line table
  • Fix: Pass Rec."Refund Id" / Rec."Return Id" as the second parameter to SetRange in 3 locations across 2 files

Fixes AB#626081

🤖 Generated with Claude Code

SetRange calls in OnDelete triggers were missing the value parameter,
causing DeleteAll to operate on the entire line table instead of only
the lines belonging to the deleted header.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@onbuyuka onbuyuka requested a review from a team as a code owner March 23, 2026 13:51
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Mar 23, 2026
@onbuyuka onbuyuka changed the title Fix Shopify refund/return deletion wiping all lines [Shopify] Fix Shopify refund/return deletion wiping all lines Mar 23, 2026
@onbuyuka onbuyuka enabled auto-merge (squash) March 23, 2026 13:55
@github-actions github-actions bot added this to the Version 29.0 milestone Mar 23, 2026
…uka/fix-shopify-refund-return-line-deletion
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AL Documentation Audit

Documentation gaps were detected in the following apps:

  • Shopify-Connector: 7% documentation coverage

To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant