Codeunit 6156 E-Doc. DED PEPPOL Pre-Mapping

E-Document Core, Microsoft.eServices.EDocument.IO.Peppol

Source AL, 690 lines

src/Apps/W1/EDocument/App/src/DataExchange/PEPPOL Data Exchange Definition/EDocDEDPEPPOLPreMapping.Codeunit.allines 19 to 34 of 690, Copyright (c) Microsoft Corporation. MIT

codeunit 6156 "E-Doc. DED PEPPOL Pre-Mapping"{    Access = Internal;    TableNo = "Data Exch.";    Permissions = tabledata "E-Document" = m;    var        TempIntegerHeaderRecords: Record "Integer" temporary;        TempIntegerLineRecords: Record "Integer" temporary;        EDocumentImportHelper: Codeunit "E-Document Import Helper";        CurrencyCodeMissingErr: Label 'The currency code is missing on the electronic document.';        CurrencyCodeDifferentErr: Label 'The currency code %1 must not be different from the currency code %2 on the electronic document.', Comment = '%1 currency code (e.g. GBP), %2 the document currency code (e.g. DKK)';        ItemCurrencyCodeDifferentErr: Label 'The currency code %1 on invoice line no. %2 must not be different from the currency code %3 on the electronic document.', Comment = '%1 Invoice line currency code (e.g. GBP), %2 invoice line no. (e.g. 2), %3 document currency code (e.g. DKK)';        BuyFromVendorNotFoundErr: Label 'Cannot find buy-from vendor ''%1'' based on the vendor''s GLN %2 or VAT registration number %3 on the electronic document. Make sure that a card for the vendor exists with the corresponding GLN or VAT Registration No.', Comment = '%1 Vendor name (e.g. London Postmaster), %2 Vendor''s GLN (13 digit number), %3 Vendor''s VAT Registration Number';        PayToVendorNotFoundErr: Label 'Cannot find pay-to vendor ''%1'' based on the vendor''s GLN %2 or VAT registration number %3 on the electronic document. Make sure that a card for the vendor exists with the corresponding GLN or VAT Registration No.', Comment = '%1 Vendor name (e.g. London Postmaster), %2 Vendor''s GLN (13 digit number), %3 Vendor''s VAT Registration Number';        FieldMustHaveAValueErr: Label 'You must specify a value for field ''%1''.', Comment = '%1 - field caption';

All 690 lines

Events 1 in 29

[IntegrationEvent] OnBeforeInsertLineForTotalDocumentAmount(EntryNo: Integer; var IsHandled: Boolean)new in 23

Public procedures 4 in 29

GetDocumentTypeOptionString(OptionIndex: Integer): Text[250]new in 23
GetDocumentTypeOptionCaption(OptionIndex: Integer): Text[250]new in 23
ConstructDocumenttypeUnknownErr(): Textnew in 23
FindAppropriateGLAccount(EntryNo: Integer; HeaderRecordNo: Integer; LineDescription: Text[250]; LineDirectUnitCost: Decimal; VendorNo: Code[20]): Code[20]new in 23