Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shopify] Log Skipped Records on export processes #27539

Merged
merged 34 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
713875f
Add Skipped Record table definition
petemchlk Sep 25, 2024
096152a
Add logging function
petemchlk Sep 27, 2024
da67ced
Add retention policy related code
petemchlk Sep 28, 2024
134b1e7
Add new logs,add fields in log
petemchlk Oct 1, 2024
ff08b22
add skipping logs to lines export, add shop so logging can be ommited
petemchlk Oct 1, 2024
7deaef5
fixes after testing
petemchlk Oct 2, 2024
34d4c99
Add logging to shopify synch shipments to shopify
petemchlk Oct 2, 2024
6417191
Remove development code, add summaries
petemchlk Oct 3, 2024
2f950bb
fix/add summary
petemchlk Oct 3, 2024
bb49612
add skip action
petemchlk Oct 3, 2024
259b674
change text to label variable
petemchlk Oct 3, 2024
c704dc4
fix label
petemchlk Oct 3, 2024
7772a29
create tests for customer logs
petemchlk Oct 7, 2024
092bdc6
fix typo
petemchlk Oct 7, 2024
7b4b8fa
add product tests
petemchlk Oct 8, 2024
c284c52
add missing product variant tests
petemchlk Oct 9, 2024
b83ec43
add invoice tests and shipment tests
petemchlk Oct 9, 2024
b8246a5
add shipment export test
petemchlk Oct 9, 2024
f5d5da9
Add fulfillment test
petemchlk Oct 9, 2024
415b042
add DIsable logging test
petemchlk Oct 10, 2024
dc61ac0
test refactor fixes
petemchlk Oct 10, 2024
27c7538
tests refactor
petemchlk Oct 11, 2024
e3b5e6c
tests refactor and pr comments resolve
petemchlk Oct 11, 2024
adca60e
small refactors
petemchlk Oct 11, 2024
6b32486
reafactors
petemchlk Oct 14, 2024
def03a7
PR fixes
petemchlk Oct 14, 2024
8b5213f
Merge branch 'main' into dev/pmi/SkipRecordLog
petemchlk Oct 15, 2024
dc6c443
fix bug, move procedures to helper codeunit
petemchlk Oct 15, 2024
6f3e4c8
Renumber objects, add table to permissionsets
petemchlk Oct 25, 2024
713a726
PR fixes
petemchlk Oct 25, 2024
506f35a
Tests fixes
petemchlk Oct 25, 2024
958bdbe
PR fixes
petemchlk Oct 28, 2024
4f0ff2e
Merge branch 'main' into dev/pmi/SkipRecordLog
GediminasGaubys Oct 30, 2024
cfa6b3b
rename codeunit
petemchlk Oct 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace Microsoft.Integration.Shopify;

using Microsoft.Integration.Shopify;
using Microsoft.Sales.Customer;
using Microsoft.Foundation.Company;
using Microsoft.Foundation.Address;
Expand Down Expand Up @@ -36,6 +37,7 @@ codeunit 30284 "Shpfy Company Export"
Shop: Record "Shpfy Shop";
CompanyAPI: Codeunit "Shpfy Company API";
CatalogAPI: Codeunit "Shpfy Catalog API";
ShpfySkipRecord: Codeunit "Shpfy Skip Record";
CreateCustomers: Boolean;
CountyCodeTooLongLbl: Label 'Can not export customer %1 %2. The length of the string is %3, but it must be less than or equal to %4 characters. Value: %5, field: %6', Comment = '%1 - Customer No., %2 - Customer Name, %3 - Length, %4 - Max Length, %5 - Value, %6 - Field Name';

Expand All @@ -44,9 +46,12 @@ codeunit 30284 "Shpfy Company Export"
ShopifyCompany: Record "Shpfy Company";
ShopifyCustomer: Record "Shpfy Customer";
CompanyLocation: Record "Shpfy Company Location";
EmptyEmailAddressLbl: Label 'Customer (Company) has no e-mail address.';
begin
if Customer."E-Mail" = '' then
if Customer."E-Mail" = '' then begin
ShpfySkipRecord.LogSkippedRecord(Customer.RecordId, 'Customer does not have an email address.', Shop);
exit;
end;

if CreateCompanyMainContact(Customer, ShopifyCustomer) then
if FillInShopifyCompany(Customer, ShopifyCompany, CompanyLocation) then
Expand Down Expand Up @@ -180,10 +185,13 @@ codeunit 30284 "Shpfy Company Export"
var
ShopifyCompany: Record "Shpfy Company";
CompanyLocation: Record "Shpfy Company Location";
CompanyWithPhoneNoOrEmailExistsLbl: Label 'Company already exists with the same e-mail or phone.';
begin
ShopifyCompany.Get(CompanyId);
if ShopifyCompany."Customer SystemId" <> Customer.SystemId then
if ShopifyCompany."Customer SystemId" <> Customer.SystemId then begin
ShpfySkipRecord.LogSkippedRecord(ShopifyCompany.Id, Customer.RecordId, CompanyWithPhoneNoOrEmailExistsLbl, Shop);
exit;
end;

CompanyLocation.SetRange("Company SystemId", ShopifyCompany.SystemId);
CompanyLocation.FindFirst();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ codeunit 30116 "Shpfy Customer Export"
var
Shop: Record "Shpfy Shop";
CustomerApi: Codeunit "Shpfy Customer API";
ShopifySkipRecordMgt: Codeunit "Shpfy Skip Record Mgt.";
ShopifySkipRecord: Codeunit "Shpfy Skip Record";
CreateCustomers: Boolean;
CountyCodeTooLongLbl: Label 'Can not export customer %1 %2. The length of the string is %3, but it must be less than or equal to %4 characters. Value: %5, field: %6', Comment = '%1 - Customer No., %2 - Customer Name, %3 - Length, %4 - Max Length, %5 - Value, %6 - Field Name';

Expand Down Expand Up @@ -91,7 +91,7 @@ codeunit 30116 "Shpfy Customer Export"
EmptyEmailAddressLbl: Label 'Customer has no e-mail address.';
begin
if Customer."E-Mail" = '' then begin
ShopifySkipRecordMgt.LogSkippedRecord(Customer.RecordId, EmptyEmailAddressLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(Customer.RecordId, EmptyEmailAddressLbl, Shop);
exit;
end;

Expand Down Expand Up @@ -304,7 +304,7 @@ codeunit 30116 "Shpfy Customer Export"
begin
ShopifyCustomer.Get(CustomerID);
if ShopifyCustomer."Customer SystemId" <> Customer.SystemId then begin
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyCustomer.Id, Customer.RecordId, CustomerWithPhoneNoOrEmailExistsLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyCustomer.Id, Customer.RecordId, CustomerWithPhoneNoOrEmailExistsLbl, Shop);
exit; // An other customer with the same e-mail or phone is the source of it.
end;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ codeunit 30362 "Shpfy Posted Invoice Export"
DraftOrdersAPI: Codeunit "Shpfy Draft Orders API";
FulfillmentAPI: Codeunit "Shpfy Fulfillment API";
JsonHelper: Codeunit "Shpfy Json Helper";
SkipRecordMgt: Codeunit "Shpfy Skip Record Mgt.";
SkipRecordMgt: Codeunit "Shpfy Skip Record";

trigger OnRun()
begin
Expand Down Expand Up @@ -96,7 +96,7 @@ codeunit 30362 "Shpfy Posted Invoice Export"
CustomerNotExistInShopifyLbl: Label 'Customer does not exists as Shopify company or customer.';
PaymentTermsNotExistLbl: Label 'Payment terms %1 do not exist in Shopify.', Comment = '%1 = Payment Terms Code.';
CustomerNoIsDefaultCustomerNoLbl: Label 'Bill-to customer no. is the default customer no. for Shopify shop.';
CustomerTemplateExistsLbl: Label 'Shopify Customer template exists for customer no. %1 shop %2.', Comment = '%1 = Customer No., %2 = Shop Code';
CustomerTemplateExistsLbl: Label 'Shopify customer template exists for customer no. %1 shop %2.', Comment = '%1 = Customer No., %2 = Shop Code';
begin
ShopifyCompany.SetRange("Customer No.", SalesInvoiceHeader."Bill-to Customer No.");
if ShopifyCompany.IsEmpty() then begin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Microsoft.Integration.Shopify;

/// <summary>
/// Codeunit Shpfy Skip Record Mgt. (ID 30313).
/// Codeunit Shpfy Skip Record (ID 30313).
/// </summary>
codeunit 30313 "Shpfy Skip Record Mgt."
codeunit 30313 "Shpfy Skip Record"
{
Access = Internal;
Permissions = tabledata "Shpfy Skipped Record" = rimd;
Expand Down
40 changes: 37 additions & 3 deletions Apps/W1/Shopify/app/src/Logs/Pages/ShpfySkippedRecords.Page.al
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ page 30166 "Shpfy Skipped Records"
{
repeater(General)
{
field(EntryNo; Rec."Entry No.") { }
field("Shopify Id"; Rec."Shopify Id") { }
field("Table ID"; Rec."Table ID") { }
field("Table Name"; Rec."Table Name") { }
Expand All @@ -40,7 +39,18 @@ page 30166 "Shpfy Skipped Records"
{
area(Promoted)
{
actionref(Show_Promoted; Show) { }
group(Category_Process)
{
actionref(Show_Promoted; Show) { }
}

group(Category_Category4)
{
Caption = 'Log Entries';

actionref(Delete7days_Promoted; Delete7days) { }
actionref(Delete0days_Promoted; Delete0days) { }
}
}
area(Processing)
{
Expand All @@ -56,6 +66,30 @@ page 30166 "Shpfy Skipped Records"
Rec.ShowPage();
end;
}
action(Delete7days)
{
ApplicationArea = All;
Caption = 'Delete Entries Older Than 7 Days';
Image = ClearLog;
ToolTip = 'Clear the list of log entries that are older than 7 days.';

trigger OnAction();
begin
Rec.DeleteEntries(7);
end;
}
action(Delete0days)
{
ApplicationArea = All;
Caption = 'Delete All Entries';
Image = Delete;
ToolTip = 'Clear the list of all log entries.';

trigger OnAction();
begin
Rec.DeleteEntries(0);
end;
}
}
}
}
}
38 changes: 30 additions & 8 deletions Apps/W1/Shopify/app/src/Logs/Tables/ShpfySkippedRecord.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ table 30159 "Shpfy Skipped Record"
}
field(2; "Shopify Id"; BigInteger)
{
Caption = 'Skipped Record Id';
Caption = 'Shopify Id';
ToolTip = 'Specifies the Shopify Id of the skipped record.';
}
field(3; "Table ID"; Integer)
field(3; "Table Id"; Integer)
{
Caption = 'Table ID';
ToolTip = 'Specifies the Table ID of the skipped record.';
Caption = 'Table Id';
ToolTip = 'Specifies the Table Id of the skipped record.';
DataClassification = SystemMetadata;

trigger OnValidate()
Expand All @@ -40,13 +40,13 @@ table 30159 "Shpfy Skipped Record"
field(4; "Table Name"; Text[250])
{
Caption = 'Table Name';
ToolTip = 'Specifies the Table Name of the skipped record.';
ToolTip = 'Specifies the table name of the skipped record.';
DataClassification = SystemMetadata;
}
field(5; "Record ID"; RecordID)
{
Caption = 'Record ID';
ToolTip = 'Specifies the Record ID of the skipped record.';
Caption = 'Record Id';
ToolTip = 'Specifies the record Id of the skipped record.';

trigger OnValidate()
begin
Expand All @@ -72,6 +72,9 @@ table 30159 "Shpfy Skipped Record"
}
}

var
DeleteLogEntriesLbl: Label 'Are you sure that you want to delete Shopify log entries?';

local procedure GetTableCaption(): Text[250]
var
AllObjWithCaption: Record AllObjWithCaption;
Expand Down Expand Up @@ -112,4 +115,23 @@ table 30159 "Shpfy Skipped Record"
if "Record ID".TableNo() <> 0 then
PageManagement.PageRun("Record ID");
end;
}

/// <summary>
/// Delete Entries.
/// </summary>
/// <param name="DaysOld">Parameter of type Integer.</param>
internal procedure DeleteEntries(DaysOld: Integer);
begin
if not Confirm(DeleteLogEntriesLbl) then
exit;

if DaysOld > 0 then begin
Rec.SetFilter(SystemCreatedAt, '<=%1', CreateDateTime(Today - DaysOld, Time));
if not Rec.IsEmpty() then
Rec.DeleteAll(false);
Rec.SetRange(SystemCreatedAt);
end else
if not Rec.IsEmpty() then
Rec.DeleteAll(false);
end;
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ codeunit 30178 "Shpfy Product Export"
ProductEvents: Codeunit "Shpfy Product Events";
ProductPriceCalc: Codeunit "Shpfy Product Price Calc.";
VariantApi: Codeunit "Shpfy Variant API";
ShopifySkipRecordMgt: Codeunit "Shpfy Skip Record Mgt.";
ShopifySkipRecord: Codeunit "Shpfy Skip Record";
OnlyUpdatePrice: Boolean;
RecordCount: Integer;
NullGuid: Guid;
BulkOperationInput: TextBuilder;
GraphQueryList: List of [TextBuilder];
VariantPriceCalcSkippedLbl: Label 'Variant price is not synchronized because the item is blocked and sales blocked.';
VariantPriceCalcSkippedLbl: Label 'Variant price is not synchronized because the item is blocked or sales blocked.';

/// <summary>
/// Creates html body for a product from extended text, marketing text and attributes.
Expand Down Expand Up @@ -321,7 +321,7 @@ codeunit 30178 "Shpfy Product Export"
if (not Item.Blocked) and (not Item."Sales Blocked") then
ProductPriceCalc.CalcPrice(Item, '', ItemUnitofMeasure.Code, ShopifyVariant."Unit Cost", ShopifyVariant.Price, ShopifyVariant."Compare at Price")
else
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyVariant.Id, Item.RecordId, VariantPriceCalcSkippedLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyVariant.Id, Item.RecordId, VariantPriceCalcSkippedLbl, Shop);
if not OnlyUpdatePrice then begin
ShopifyVariant."Available For Sales" := (not Item.Blocked) and (not Item."Sales Blocked");
ShopifyVariant.Barcode := CopyStr(GetBarcode(Item."No.", '', ItemUnitofMeasure.Code), 1, MaxStrLen(ShopifyVariant.Barcode));
Expand Down Expand Up @@ -358,7 +358,7 @@ codeunit 30178 "Shpfy Product Export"
if (not Item.Blocked) and (not Item."Sales Blocked") then
ProductPriceCalc.CalcPrice(Item, ItemVariant.Code, Item."Sales Unit of Measure", ShopifyVariant."Unit Cost", ShopifyVariant.Price, ShopifyVariant."Compare at Price")
else
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyVariant.Id, Item.RecordId, VariantPriceCalcSkippedLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyVariant.Id, Item.RecordId, VariantPriceCalcSkippedLbl, Shop);
if not OnlyUpdatePrice then begin
ShopifyVariant."Available For Sales" := (not Item.Blocked) and (not Item."Sales Blocked");
ShopifyVariant.Barcode := CopyStr(GetBarcode(Item."No.", ItemVariant.Code, Item."Sales Unit of Measure"), 1, MaxStrLen(ShopifyVariant.Barcode));
Expand Down Expand Up @@ -405,7 +405,7 @@ codeunit 30178 "Shpfy Product Export"
if (not Item.Blocked) and (not Item."Sales Blocked") then
ProductPriceCalc.CalcPrice(Item, ItemVariant.Code, ItemUnitofMeasure.Code, ShopifyVariant."Unit Cost", ShopifyVariant.Price, ShopifyVariant."Compare at Price")
else
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyVariant.Id, Item.RecordId, VariantPriceCalcSkippedLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyVariant.Id, Item.RecordId, VariantPriceCalcSkippedLbl, Shop);
if not OnlyUpdatePrice then begin
ShopifyVariant."Available For Sales" := (not Item.Blocked) and (not Item."Sales Blocked");
ShopifyVariant.Barcode := CopyStr(GetBarcode(Item."No.", ItemVariant.Code, ItemUnitofMeasure.Code), 1, MaxStrLen(ShopifyVariant.Barcode));
Expand Down Expand Up @@ -553,24 +553,24 @@ codeunit 30178 "Shpfy Product Export"
RecordRef2: RecordRef;
VariantAction: Option " ",Create,Update;
ItemIsBlockedLbl: Label 'Item is blocked.';
ItemIsDraftLbl: Label 'Shopify Product is in draft status.';
ItemIsArchivedLbl: Label 'Shopify Product is archived.';
ItemIsDraftLbl: Label 'Shopify product is in draft status.';
ItemIsArchivedLbl: Label 'Shopify product is archived.';
begin
if ShopifyProduct.Get(ProductId) and Item.GetBySystemId(ShopifyProduct."Item SystemId") then begin
case Shop."Action for Removed Products" of
Shop."Action for Removed Products"::StatusToArchived:
if Item.Blocked and (ShopifyProduct.Status = ShopifyProduct.Status::Archived) then begin
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyProduct.Id, Item.RecordId, ItemIsArchivedLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyProduct.Id, Item.RecordId, ItemIsArchivedLbl, Shop);
exit;
end;
Shop."Action for Removed Products"::StatusToDraft:
if Item.Blocked and (ShopifyProduct.Status = ShopifyProduct.Status::Draft) then begin
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyProduct.Id, Item.RecordId, ItemIsDraftLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyProduct.Id, Item.RecordId, ItemIsDraftLbl, Shop);
exit;
end;
Shop."Action for Removed Products"::DoNothing:
if Item.Blocked then begin
ShopifySkipRecordMgt.LogSkippedRecord(ShopifyProduct.Id, Item.RecordId, ItemIsBlockedLbl, Shop);
ShopifySkipRecord.LogSkippedRecord(ShopifyProduct.Id, Item.RecordId, ItemIsBlockedLbl, Shop);
exit;
end;
end;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ codeunit 30190 "Shpfy Export Shipments"
ShopifyOrderHeader: Record "Shpfy Order Header";
OrderFulfillments: Codeunit "Shpfy Order Fulfillments";
JsonHelper: Codeunit "Shpfy Json Helper";
SkipRecordMgt: Codeunit "Shpfy Skip Record Mgt.";
SkipRecordMgt: Codeunit "Shpfy Skip Record";
JFulfillment: JsonToken;
JResponse: JsonToken;
FulfillmentOrderRequest: Text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ report 30109 "Shpfy Sync Shipm. to Shopify"
ShopifyOrderHeader: Record "Shpfy Order Header";
ShipmentLine: Record "Sales Shipment Line";
Shop: Record "Shpfy Shop";
SkipRecordMgt: Codeunit "Shpfy Skip Record Mgt.";
SkipRecordMgt: Codeunit "Shpfy Skip Record";
NoLinesApplicableLbl: Label 'No lines applicable for fulfillment.';
ShopifyOrderNotExistsLbl: Label 'Shopify order %1 does not exist.', Comment = '%1 = Shopify Order Id';
begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
// [SCENARIO] Skip shopify variant price calculation using item unit of measure for variant with blocked item.
Initialize();

// [GIVEN] Blocked and sales blokced item
// [GIVEN] Blocked or sales blokced item
CreateBlockedItem(Item);
// [GIVEN] Shopify Product
CreateShpfyProduct(ShopifyProduct, Item.SystemId, Shop.Code, ShopifyVariant);
Expand All @@ -183,7 +183,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
ShpfySkippedRecord.SetRange("Record ID", Item.RecordId);
ShpfySkippedRecord.SetRange("Shopify Id", ShopifyVariant.Id);
LibraryAssert.IsTrue(ShpfySkippedRecord.FindFirst(), 'Skipped record is not created');
LibraryAssert.AreEqual('Variant price is not synchronized because the item is blocked and sales blocked.', ShpfySkippedRecord."Skipped Reason", 'Skipped reason is not as expected');
LibraryAssert.AreEqual('Variant price is not synchronized because the item is blocked or sales blocked.', ShpfySkippedRecord."Skipped Reason", 'Skipped reason is not as expected');
end;

[Test]
Expand All @@ -199,7 +199,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
// [SCENARIO] Skip shopify variant price calculation using item variant for variant with blocked item.
Initialize();

// [GIVEN] Blocked and sales blokced item
// [GIVEN] Blocked or sales blokced item
CreateBlockedItem(Item);
// [GIVEN] Shopify Product
CreateShpfyProduct(ShopifyProduct, Item.SystemId, Shop.Code, ShopifyVariant);
Expand All @@ -213,7 +213,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
ShpfySkippedRecord.SetRange("Record ID", Item.RecordId);
ShpfySkippedRecord.SetRange("Shopify Id", ShopifyVariant.Id);
LibraryAssert.IsTrue(ShpfySkippedRecord.FindFirst(), 'Skipped record is not created');
LibraryAssert.AreEqual('Variant price is not synchronized because the item is blocked and sales blocked.', ShpfySkippedRecord."Skipped Reason", 'Skipped reason is not as expected');
LibraryAssert.AreEqual('Variant price is not synchronized because the item is blocked or sales blocked.', ShpfySkippedRecord."Skipped Reason", 'Skipped reason is not as expected');
end;

[Test]
Expand All @@ -230,7 +230,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
// [SCENARIO] Skip shopify variant price calculation using item unit of measure and item variant for variant with blocked item.
Initialize();

// [GIVEN] Blocked and sales blokced item
// [GIVEN] Blocked or sales blokced item
CreateBlockedItem(Item);
// [GIVEN] Shopify Product
CreateShpfyProduct(ShopifyProduct, Item.SystemId, Shop.Code, ShopifyVariant);
Expand All @@ -244,7 +244,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
ShpfySkippedRecord.SetRange("Record ID", Item.RecordId);
ShpfySkippedRecord.SetRange("Shopify Id", ShopifyVariant.Id);
LibraryAssert.IsTrue(ShpfySkippedRecord.FindFirst(), 'Skipped record is not created');
LibraryAssert.AreEqual('Variant price is not synchronized because the item is blocked and sales blocked.', ShpfySkippedRecord."Skipped Reason", 'Skipped reason is not as expected');
LibraryAssert.AreEqual('Variant price is not synchronized because the item is blocked or sales blocked.', ShpfySkippedRecord."Skipped Reason", 'Skipped reason is not as expected');
end;

[Test]
Expand Down Expand Up @@ -590,7 +590,7 @@ codeunit 139581 "Shpfy Skipped Record Log Test"
var
ShopWithDisabledLogging: Record "Shpfy Shop";
SkippedRecord: Record "Shpfy Skipped Record";
SkipRecordMgt: Codeunit "Shpfy Skip Record Mgt.";
SkipRecordMgt: Codeunit "Shpfy Skip Record";
RecordID: RecordID;
ShopifyId: BigInteger;
TableId: Integer;
Expand Down
Loading