Codeunit 8066 Purchase Documents
Source AL, 282 lines
src/Apps/W1/Subscription Billing/App/Billing/Codeunits/PurchaseDocuments.Codeunit.allines 10 to 25 of 282, Copyright (c) Microsoft Corporation. MIT
codeunit 8066 "Purchase Documents"{ SingleInstance = true; [EventSubscriber(ObjectType::Table, Database::"Purchase Header", OnBeforeDeleteEvent, '', false, false)] local procedure PurchaseHeaderOnBeforeDeleteEvent(var Rec: Record "Purchase Header"; RunTrigger: Boolean) var PurchaseLine: Record "Purchase Line"; BillingLine: Record "Billing Line"; begin if Rec.IsTemporary then exit; if not RunTrigger then exit; if not (Rec."Document Type" in [Enum::"Purchase Document Type"::Invoice, Enum::"Purchase Document Type"::"Credit Memo"]) thenEvents 1 in 29
| [IntegrationEvent] On | new in 26 |