Codeunit 2674 Alloc. Acc. Handle Doc. Post

Base Application, Microsoft.Finance.AllocationAccount

Source AL, 75 lines

src/Layers/W1/BaseApp/Finance/AllocationAccount/AllocAccHandleDocPost.Codeunit.allines 15 to 30 of 75, Copyright (c) Microsoft Corporation. MIT

codeunit 2674 "Alloc. Acc. Handle Doc. Post"{    EventSubscriberInstance = Manual;    [EventSubscriber(ObjectType::Table, Database::"Sales Line", 'OnBeforeValidateVATProdPostingGroup', '', false, false)]    local procedure SalesBeforeValidateVATProdPostingGroup(var IsHandled: Boolean; var SalesLine: Record "Sales Line")    begin        if VATBusPostingGroupCode <> '' then            SalesLine."VAT Bus. Posting Group" := VATBusPostingGroupCode;    end;    [EventSubscriber(ObjectType::Table, Database::"Sales Line", 'OnBeforeValidateVATProdPostingGroupTrigger', '', false, false)]    local procedure SalesBeforeValidateVATProdPostingGroupTrigger(var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)    begin        if VATProdPostingGroupCode <> '' then            SalesLine."VAT Prod. Posting Group" := VATProdPostingGroupCode;

All 75 lines

Public procedures 2 in 29

SetVATBusPostingGroupCode(NewVATBusPostingGroupCode: Code[20])new in 23
SetVATProdPostingGroupCode(NewVATProdPostingGroupCode: Code[20])new in 23