Commit 8300a9e
[Shopify] Fix Shopify refund/return deletion wiping all lines (#7320)
## 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](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/626081)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 44301e1 commit 8300a9e
2 files changed
Lines changed: 3 additions & 3 deletions
File tree
- src/Apps/W1/Shopify/App/src
- Order Refunds/Tables
- Order Returns/Tables
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments