Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Expand Up @@ -11,7 +11,7 @@ codeunit 30228 "Shpfy Refunds API"
CommunicationMgt: Codeunit "Shpfy Communication Mgt.";
JsonHelper: Codeunit "Shpfy Json Helper";
RefundEnumConvertor: Codeunit "Shpfy Refund Enum Convertor";
RefundCantCreateCreditMemoErr: Label 'The refund imported from Shopify can''t be used to create a credit memo. Only refunds for paid items can be used to create credit memos.';
RefundCantCreateCreditMemoErr: Label 'This refund cannot be used to create a credit memo because it has already been considered during order import and reduced the quantity and amounts of the order. Only refunds with a non-zero refunded amount and related to real item returns can be used to create credit memos.';

internal procedure GetRefunds(JRefunds: JsonArray)
var
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ codeunit 139611 "Shpfy Order Refund Test"
asserterror RefundsAPI.VerifyRefundCanCreateCreditMemo(RefundId3);

// [THEN] Only RefundId3 throws an error
LibraryAssert.ExpectedError('The refund imported from Shopify can''t be used to create a credit memo. Only refunds for paid items can be used to create credit memos.');
LibraryAssert.ExpectedError('This refund cannot be used to create a credit memo because it has already been considered during order import and reduced the quantity and amounts of the order. Only refunds with a non-zero refunded amount and related to real item returns can be used to create credit memos.');
end;

[Test]
Expand Down
Loading