Codeunit 321 Purch.HeaderArch-Printed

Base Application, Microsoft.Purchases.Archive

Source AL, 41 lines

src/Layers/W1/BaseApp/Purchases/Archive/PurchHeaderArchPrinted.Codeunit.allines 7 to 22 of 41, Copyright (c) Microsoft Corporation. MIT

codeunit 321 "Purch.HeaderArch-Printed"{    TableNo = "Purchase Header Archive";    trigger OnRun()    begin        OnBeforeOnRun(Rec, SuppressCommit);        Rec.Find();        Rec."No. Printed" := Rec."No. Printed" + 1;        OnBeforeModify(Rec);        Rec.Modify();        if not SuppressCommit then            Commit();    end;    var

All 41 lines

Events 2 in 29

[IntegrationEvent] OnBeforeModify(var PurchaseHeaderArchive: Record "Purchase Header Archive")17-29
[IntegrationEvent] OnBeforeOnRun(var PurchaseHeaderArchive: Record "Purchase Header Archive"; var SuppressCommit: Boolean)17-29

Public procedures 1 in 29

SetSuppressCommit(NewSuppressCommit: Boolean)17-29