Codeunit 6651 Return Shipment - Printed
src/Layers/W1/BaseApp/Purchases/History/ReturnShipmentPrinted.Codeunit.al43 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 6651 "Return Shipment - Printed"{ Permissions = TableData "Return Shipment Header" = rimd; TableNo = "Return Shipment 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 SuppressCommit: Boolean; procedure SetSuppressCommit(NewSuppressCommit: Boolean) begin SuppressCommit := NewSuppressCommit; end; [IntegrationEvent(false, false)] local procedure OnBeforeModify(var ReturnShipmentHeader: Record "Return Shipment Header") begin end; [IntegrationEvent(false, false)] local procedure OnBeforeOnRun(var ReturnShipmentHeader: Record "Return Shipment Header"; var SuppressCommit: Boolean) begin end;}