Codeunit 1313 Correct Posted Purch. Invoice

Base Application, Microsoft.Purchases.History

Source AL, 1,242 lines

src/Layers/W1/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.allines 29 to 44 of 1,242, Copyright (c) Microsoft Corporation. MIT

codeunit 1313 "Correct Posted Purch. Invoice"{    Permissions = TableData "Purch. Inv. Header" = rm,                  TableData "Purch. Cr. Memo Hdr." = rm;    TableNo = "Purch. Inv. Header";    trigger OnRun()    var        PurchaseHeader: Record "Purchase Header";        ItemJnlPostLine: Codeunit "Item Jnl.-Post Line";        NoSeries: Codeunit "No. Series";        RedoApplications: Boolean;    begin        RedoApplications := UnapplyCostApplication(ItemJnlPostLine, Rec."No.");        OnRunOnBeforeCreateCopyDocument(Rec);        CreateCopyDocument(Rec, PurchaseHeader, PurchaseHeader."Document Type"::"Credit Memo", false);

All 1,242 lines

Events 22 in 29

[IntegrationEvent] OnAfterTestCorrectInvoiceIsAllowed(var PurchInvHeader: Record "Purch. Inv. Header"; Cancelling: Boolean)17-29
[IntegrationEvent] OnBeforePurchaseHeaderInsert(var PurchaseHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header")17-29
[IntegrationEvent] OnBeforeUnAppyCostApplication(InvNo: Code[20]; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeUpdatePurchaseOrderLineInvoicedQuantity(var PurchaseLine: Record "Purchase Line"; CancelledQuantity: Decimal; CancelledQtyBase: Decimal; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeTestInventoryPostingSetup(PurchInvLine: Record "Purch. Inv. Line"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnHasLineDiscountSetup(PurchasesPayablesSetup: Record "Purchases & Payables Setup"; var Result: Boolean)17-29
[IntegrationEvent] OnAfterIsCheckDirectCostAppliedAccount(PurchInvLine: Record "Purch. Inv. Line"; var Result: Boolean)17-29

All 25 events in 17-29

Public procedures 9 in 29

CancelPostedInvoice(var PurchInvHeader: Record "Purch. Inv. Header"): Boolean17-29
CreateCreditMemoCopyDocument(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"): Boolean17-29
CreateCorrectiveCreditMemo(var InvoiceNotification: Notification)17-29
ShowAppliedEntries(var InvoiceNotification: Notification)17-29
SkipCorrectiveCreditMemo(var InvoiceNotification: Notification)17-29
CancelPostedInvoiceStartNewInvoice(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header")17-29

All 10 procedures in 17-29

Changes 1 in 28

List17181920212223242526272829
Procedures11
Events4152611
[IntegrationEvent] OnBeforeTestPurchaseInvoiceHeaderAmount(var PurchInvHeader: Record "Purch. Inv. Header"; Cancelling: Boolean; var IsHandled: Boolean)23 to 27
gone

All 22 changes in 17-29