Skip to content

Commit e42fd57

Browse files
authored
Add Order Line Id to OrderLineAttribute in ShpfyImportOrder.Codeunit.al (#26292)
<!-- Thank you for submitting a Pull Request. If you're new to contributing to AlAppExtensions please read our pull request guideline below * https://github.com/microsoft/ALAppExtensions/blob/main/CONTRIBUTING.md --> #### Summary <!-- Provide a general summary of your changes --> I've added a line of code that filters the OrderLineAttribute variable on field "Order Line Id". The purpose is to avoid deletion of records imported for previous lines. #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes #26274 Fixes [AB#525455](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/525455)
1 parent eaeff6c commit e42fd57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Apps/W1/Shopify/app/src/Order handling/Codeunits/ShpfyImportOrder.Codeunit.al

+1
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ codeunit 30161 "Shpfy Import Order"
651651
JToken: JsonToken;
652652
begin
653653
OrderLineAttribute.SetRange("Order Id", ShopifyOrderId);
654+
OrderLineAttribute.SetRange("Order Line Id", OrderLineId);
654655
if not OrderLineAttribute.IsEmpty then
655656
OrderLineAttribute.DeleteAll();
656657
foreach JToken in JCustomAttributtes do begin

0 commit comments

Comments
 (0)