Codeunit 320 PurchCrMemo-Printed
src/Layers/W1/BaseApp/Purchases/History/PurchCrMemoPrinted.Codeunit.al42 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.History;codeunit 320 "PurchCrMemo-Printed"{ Permissions = TableData "Purch. Cr. Memo Hdr." = rimd; TableNo = "Purch. Cr. Memo Hdr."; 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 PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; [IntegrationEvent(false, false)] local procedure OnBeforeOnRun(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var SuppressCommit: Boolean) begin end;}