Codeunit 1224 Map Incoming Doc to Gen. Line

Base Application, System.IO

Source AL, 225 lines

src/Layers/W1/BaseApp/System/DataExchange/MapIncomingDoctoGenLine.Codeunit.allines 13 to 28 of 225, Copyright (c) Microsoft Corporation. MIT

codeunit 1224 "Map Incoming Doc to Gen. Line"{    TableNo = "Incoming Document";    trigger OnRun()    begin        IncomingDocument := Rec;        ErrorMessage.SetContext(IncomingDocument);        CreateGeneralJournalLineFromIncomingDocument();    end;    var        NoBalanceAccountMappingErr: Label 'Could not fill the Bal. Account No. field for vendor ''''%1''''. Choose the Map Text to Account button to map ''''%1'''' to the relevant G/L account.', Comment = '%1 - vendor name';        NoDebitAccountMappingErr: Label 'Could not fill the %1 field for vendor ''''%2''''. Choose the Map Text to Account button to map ''''%2'''' to the relevant G/L account.', Comment = '%1 - Debit Acc. No. or Credit Acc. No. field caption, %2 - vendor name';        VatAmountMismatchErr: Label 'VAT amount %1 on the general journal line does not match VAT amount %2 in the incoming document.', Comment = '%1 - General Journal Line VAT amount, %2 - Incoming Document VAT  amount';        TemplateBatchNameMissingErr: Label 'You must fill the General Journal Template Name and General Journal Batch Name fields in the Incoming Document Setup window. ';

All 225 lines

Events 1 in 29

[IntegrationEvent] OnBeforeGenJnlLineInsertFromIncomingDocument(var GenJournalLine: Record "Gen. Journal Line"; IncomingDocument: Record "Incoming Document")17-29