codeunitPurchasing & Payablesofficial - Microsoftderived - from the source, no model text

Codeunit 364 "PostPurch-Delete"

Base Application · Microsoft.Purchases.History

Across versions

  1. BC23-30present

Neighbourhood 7 connected objects and pages

Codeunit 361 "MoveEntries" (calls, 4 links)MoveEntriesCodeunit 6500 "Item Tracking Management" (calls, 4 links)Item Tracking ManagementTable 120 "Purch. Rcpt. Header" (calls, 2 links)Purch. Rcpt. HeaderTable 122 "Purch. Inv. Header" (calls, 2 links)Purch. Inv. HeaderTable 124 "Purch. Cr. Memo Hdr." (calls, 2 links)Purch. Cr. Memo Hdr.Table 38 "Purchase Header" (calls, 2 links)Purchase HeaderTable 6650 "Return Shipment Header" (calls, 2 links)Return Shipment Header

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Purchases.History · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Permissions TableData “Purch. Rcpt. Header” = ri, TableData “Purch. Rcpt. Line” = rid, TableData “Purch. Inv. Header” = ri, TableData “Purch. Inv. Line” = rid, TableData “Purch. Cr. Memo Hdr.” = ri, TableData “Purch. Cr. Memo Line” = rid, TableData “Return Shipment Header” = ri, TableData “Return Shipment Line”…

Events published

  • OnAfterDeleteHeader(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; var PurchCrMemoHdrPrepmt: Record "Purch. Cr. Memo Hdr.") (integration)
  • OnAfterInitDeleteHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; var PurchCrMemoHdrPrepmt: Record "Purch. Cr. Memo Hdr.") (integration)
  • OnAfterInitPurchInvHeader(var PurchInvHeader: Record "Purch. Inv. Header"; PurchHeader: Record "Purchase Header") (integration)
  • OnAfterInitPurchInvHeaderPrepmt(var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; PurchHeader: Record "Purchase Header") (integration)
  • OnBeforeDeleteHeader(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; var PurchCrMemoHdrPrepmt: Record "Purch. Cr. Memo Hdr.") (integration)
  • OnBeforeDeletePurchRcptLines(PurchRcptLine: Record "Purch. Rcpt. Line") (integration)
  • OnBeforeDeletePurchInvLines(PurchInvLine: Record "Purch. Inv. Line") (integration)
  • OnBeforeDeletePurchCrMemoLines(PurchCrMemoLine: Record "Purch. Cr. Memo Line") (integration)
  • OnBeforeDeletePurchShptLines(ReturnShptLine: Record "Return Shipment Line") (integration)
  • OnBeforeInitDeleteHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; var PurchCrMemoHdrPrepmt: Record "Purch. Cr. Memo Hdr."; var SourceCode: Code[10]) (integration)

Procedures

  • DeleteHeader(PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; var PurchCrMemoHdrPrepmt: Record "Purch. Cr. Memo Hdr.")
  • DeletePurchRcptLines(PurchRcptHeader: Record "Purch. Rcpt. Header")
  • DeletePurchInvLines(PurchInvHeader: Record "Purch. Inv. Header")
  • DeletePurchCrMemoLines(PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.")
  • DeletePurchShptLines(ReturnShptHeader: Record "Return Shipment Header")
  • InitDeleteHeader(PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchInvHeaderPrepmt: Record "Purch. Inv. Header"; var PurchCrMemoHdrPrepmt: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10])
  • IsDocumentDeletionAllowed(PostingDate: Date)

Plus 2 local procedures.

Triggers

OnRun

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

  • Codeunit 361 “MoveEntries” (4 calls: DeletePurchCrMemoLines → MoveDocRelatedEntries, DeletePurchInvLines → MoveDocRelatedEntries, DeletePurchRcptLines → MoveDocRelatedEntries, …)
  • Codeunit 6500 “Item Tracking Management” (4 calls: DeletePurchCrMemoLines → DeleteItemEntryRelation, DeletePurchInvLines → DeleteValueEntryRelation, DeletePurchRcptLines → DeleteItemEntryRelation, …)

Called by

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "PostPurch-Delete"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources