Codeunit 317 Purch.Header-Printed

Base Application, Microsoft.Purchases.Document

Source AL, 41 lines

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

codeunit 317 "Purch.Header-Printed"{    TableNo = "Purchase Header";    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 PurchaseHeader: Record "Purchase Header")17-29
[IntegrationEvent] OnBeforeOnRun(var PurchaseHeader: Record "Purchase Header"; var SuppressCommit: Boolean)17-29

Public procedures 1 in 29

SetSuppressCommit(NewSuppressCommit: Boolean)17-29