Codeunit 30243 Shpfy RetRefProc Cr.Memo

Shopify Connector, Microsoft.Integration.Shopify

Source AL, 107 lines

src/Apps/W1/Shopify/App/src/Order Return Refund Processing/Codeunits/ShpfyRetRefProcCrMemo.Codeunit.allines 10 to 25 of 107, Copyright (c) Microsoft Corporation. MIT

codeunit 30243 "Shpfy RetRefProc Cr.Memo" implements "Shpfy IReturnRefund Process"{    procedure IsImportNeededFor(SourceDocumentType: Enum "Shpfy Source Document Type"): Boolean    begin        exit(true);    end;    procedure CanCreateSalesDocumentFor(SourceDocumentType: Enum "Shpfy Source Document Type"; SourceDocumentId: BigInteger; var ErrorInfo: ErrorInfo): Boolean    var        OrderHeader: Record "Shpfy Order Header";        RefundHeader: Record "Shpfy Refund Header";        AlreadyProcessedMsg: Label 'The refund %1 is already processed.', Comment = '%1 = Refund Id';        OrderNotFoundErr: Label 'The shopify order id %1 is not found', Comment = '%1 = Order Id';        OrderNotProcessedErr: Label 'You must process Shopify order %1 first', Comment = '%1 = OrderNumber';        RefundErr: Label 'Can not create a credit memo for the refund %1. \%2', Comment = '%1 = Refund Id, %2 = detailed error message';    begin

All 107 lines

Public procedures 3 in 29

IsImportNeededFor(SourceDocumentType: Enum "Shpfy Source Document Type"): Booleannew in 22
CanCreateSalesDocumentFor(SourceDocumentType: Enum "Shpfy Source Document Type"; SourceDocumentId: BigInteger; var ErrorInfo: ErrorInfo): Booleannew in 22
CreateSalesDocument(SourceDocumentType: Enum "Shpfy Source Document Type"; SourceDocumentId: BigInteger): Record "Sales Header"new in 22