Codeunit 6486 Serv. VAT Specification Mgt.
Source AL, 65 lines
src/Layers/W1/BaseApp/Service/Finance/VAT/ServVATSpecificationMgt.Codeunit.allines 12 to 27 of 65, Copyright (c) Microsoft Corporation. MIT
codeunit 6486 "Serv. VAT Specification Mgt."{ var CanOnlyBeModifiedErr: Label '%1 can only be modified on the %2 tab.', Comment = '%1 - field caption, %2 - page tab caption'; DetailsTxt: Label 'Details'; [EventSubscriber(ObjectType::Page, Page::"VAT Specification Subform", 'OnBeforeCheckAmountChange', '', true, false)] local procedure OnBeforeCheckAmountChange(ParentControl: Integer; AmountFieldCaption: Text); begin if ParentControl = PAGE::"Service Order Statistics" then Error(CanOnlyBeModifiedErr, AmountFieldCaption, DetailsTxt) end; [EventSubscriber(ObjectType::Page, Page::"VAT Specification Subform", 'OnAfterModifyRec', '', true, false)] local procedure OnAfterModifyRec(var SourceHeader: Variant; var VATAmountLine: Record "VAT Amount Line"; ParentControl: Integer; CurrentTabNo: Integer) var