Codeunit 321 Purch.HeaderArch-Printed
- App
- Base Application
- Namespace
- Microsoft.Purchases.Archive
- Versions
- 17-28
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Purchases/Archive/PurchHeaderArchPrinted.Codeunit.al41 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
namespace Microsoft.Purchases.Archive;
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
SuppressCommit: Boolean;
procedure SetSuppressCommit(NewSuppressCommit: Boolean)
begin
SuppressCommit := NewSuppressCommit;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeModify(var PurchaseHeaderArchive: Record "Purchase Header Archive")
begin
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeOnRun(var PurchaseHeaderArchive: Record "Purchase Header Archive"; var SuppressCommit: Boolean)
begin
end;
}