Codeunit 6487 Serv. VAT Setup Mgt.
Source AL, 33 lines
src/Layers/W1/BaseApp/Service/Finance/VAT/ServVATSetupMgt.Codeunit.allines 10 to 25 of 33, Copyright (c) Microsoft Corporation. MIT
codeunit 6487 "Serv. VAT Setup Mgt."{ Permissions = TableData "Service Line" = rimd; [EventSubscriber(ObjectType::Table, Database::"VAT Setup Posting Groups", 'OnBeforeCheckExistingItemAndServiceWithVAT', '', true, false)] local procedure OnBeforeCheckExistingItemAndServiceWithVAT(VATProdPostingGroupCode: Code[20]; var Result: Boolean) var ServiceLine: Record "Service Line"; begin ServiceLine.SetRange("VAT Prod. Posting Group", VATProdPostingGroupCode); Result := not ServiceLine.IsEmpty(); end; [EventSubscriber(ObjectType::Page, Page::"VAT Setup Wizard", 'OnBeforeDeleteVATProdPostingGroup', '', true, false)] local procedure OnBeforeDeleteVATProdPostingGroup(var VATProductPostingGroup: Record "VAT Product Posting Group"; var ShouldDelete: Boolean) var