Codeunit 5529 "Purch. Inv. Aggregator"
Base Application · Microsoft.Integration.Entity
Across versions
- BC23-26present
- BC27declaration changed
- BC28-30unchanged
Neighbourhood 24 connected objects and pages
Base Application · Microsoft.Integration.Entity · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | tabledata “Purch. Inv. Header” = rimd, tabledata “Purch. Inv. Entity Aggregate” = rimd |
Event subscriptions
- OnAfterInsertPurchaseHeader subscribes to Table “Purchase Header” OnAfterInsertEvent
- OnAfterModifyPurchaseHeader subscribes to Table “Purchase Header” OnAfterModifyEvent
- OnAfterDeletePurchaseHeader subscribes to Table “Purchase Header” OnAfterDeleteEvent
- OnAfterResetRecalculateInvoiceDisc subscribes to Codeunit “Purch - Calc Disc. By Type” OnAfterResetRecalculateInvoiceDisc
- OnAfterInsertPurchaseLine subscribes to Table “Purchase Line” OnAfterInsertEvent
- OnAfterModifyPurchaseLine subscribes to Table “Purchase Line” OnAfterModifyEvent
- OnAfterDeletePurchaseLine subscribes to Table “Purchase Line” OnAfterDeleteEvent
- OnAfterInsertPurchaseInvoiceHeader subscribes to Table “Purch. Inv. Header” OnAfterInsertEvent
- OnAfterModifyPurchaseInvoiceHeader subscribes to Table “Purch. Inv. Header” OnAfterModifyEvent
- OnAfterRenamePurchaseInvoiceHeader subscribes to Table “Purch. Inv. Header” OnAfterRenameEvent
- OnAfterDeletePurchaseInvoiceHeader subscribes to Table “Purch. Inv. Header” OnAfterDeleteEvent
- OnAfterCalculatePurchaseDiscountOnPurchaseHeader subscribes to Codeunit “Purch.-Calc.Discount” OnAfterCalcPurchaseDiscount
- OnAfterInsertVendorLedgerEntry subscribes to Table “Vendor Ledger Entry” OnAfterInsertEvent
- OnAfterModifyVendorLedgerEntry subscribes to Table “Vendor Ledger Entry” OnAfterModifyEvent
- OnAfterRenameVendorLedgerEntry subscribes to Table “Vendor Ledger Entry” OnAfterRenameEvent
- OnAfterDeleteVendorLedgerEntry subscribes to Table “Vendor Ledger Entry” OnAfterDeleteEvent
- OnAfterInsertCancelledDocument subscribes to Table “Cancelled Document” OnAfterInsertEvent
- OnAfterModifyCancelledDocument subscribes to Table “Cancelled Document” OnAfterModifyEvent
- OnAfterRenameCancelledDocument subscribes to Table “Cancelled Document” OnAfterRenameEvent
- OnAfterDeleteCancelledDocument subscribes to Table “Cancelled Document” OnAfterDeleteEvent
- OnBeforePurchInvHeaderInsert subscribes to Codeunit “Purch.-Post” OnBeforePurchInvHeaderInsert
Procedures
PropagateOnInsert(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)PropagateOnModify(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)PropagateOnDelete(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate")UpdateAggregateTableRecords()GetPurchaseInvoiceHeaderId(var PurchInvHeader: Record "Purch. Inv. Header"): GuidGetPurchaseInvoiceHeaderFromId(Id: Text; var PurchInvHeader: Record "Purch. Inv. Header"): BooleanUpdateUnitOfMeasure(var Item: Record Item; JSONUnitOfMeasureTxt: Text)RedistributeInvoiceDiscounts(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate")LoadLines(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate"; DocumentIdFilter: Text)PropagateInsertLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)PropagateModifyLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)PropagateDeleteLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate")UpdateLineAmountsFromPurchaseLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate")SetItemVariantId(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate"; ItemNo: Code[20]; VariantCode: Code[20])UpdateInvoiceDiscountAmount(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate")VerifyCanUpdateUOM(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate")FixInvoicesCreatedFromOrders()SetTaxGroupIdAndCode(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate"; TaxGroupCode: Code[20]; VATProductPostingGroupCode: Code[20]; VATIdentifier: Code[20])
Plus 24 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 5465 “Graph Mgt - General Tools” (25 calls:
CheckValidLineRecord → IsApiEnabled,ModifyTotalsPurchaseLine → IsApiEnabled,OnAfterCalculatePurchaseDiscountOnPurchaseHeader → IsApiEnabled, …) - Codeunit 5477 “Sales Invoice Aggregator” (2 calls:
LoadPurchaseInvoiceLines → GetIdFromDocumentIdAndSequence,TransferFromPurchaseLine → GetIdFromDocumentIdAndSequence) - Codeunit 57 “Document Totals” (2 calls:
AssignTotalsFromPurchaseInvoiceLine → CalculatePostedPurchInvoiceTotals,AssignTotalsFromPurchaseLine → CalculatePurchaseTotals) - Codeunit 9999 “Upgrade Tag” (2 calls:
FixInvoicesCreatedFromOrders → HasUpgradeTag,FixInvoicesCreatedFromOrders → SetUpgradeTag) - Codeunit 5470 “Graph Collection Mgt - Item” (1 call:
UpdateUnitOfMeasure → UpdateOrCreateItemUnitOfMeasureFromSalesDocument) - Codeunit 5532 “Disable Aggregate Table Update” (1 call:
CheckUpdatesDisabled → OnGetAggregateTablesUpdateEnabled) - Codeunit 66 “Purch - Calc Disc. By Type” (1 call:
RedistributeInvoiceDiscounts → (object)) - Codeunit 701 “Data Type Management” (1 call:
TransferFieldsWithValidate → GetRecordRef) - Codeunit 9994 “API Data Upgrade” (1 call:
UpdateAggregateTableRecords → CountRecordsAndCommit) - Codeunit 9998 “Upgrade Tag Definitions” (1 call:
FixInvoicesCreatedFromOrders → GetFixAPIPurchaseInvoicesCreatedFromOrders)
Called by
- Page 20042 “APIV1 - Purchase Invoices” (8 calls:
OnAfterGetRecord → RedistributeInvoiceDiscounts,OnDeleteRecord → PropagateOnDelete,OnInsertRecord → PropagateOnInsert, …) - Page 30042 “APIV2 - Purchase Invoices” (8 calls:
OnAfterGetRecord → RedistributeInvoiceDiscounts,OnDeleteRecord → PropagateOnDelete,OnInsertRecord → PropagateOnInsert, …) - Codeunit 5511 “Graph Mgt - Purch. Cr. Memo” (6 calls:
LoadPurchaseCreditMemoLines → SetItemVariantId,LoadPurchaseCreditMemoLines → SetTaxGroupIdAndCode,TransferFromPurchaseLine → SetItemVariantId, …) - Page 20047 “APIV1 - Purchase Invoice Lines” (4 calls:
OnDeleteRecord → PropagateDeleteLine,OnFindRecord → LoadLines,OnInsertRecord → PropagateInsertLine, …) - Page 30047 “APIV2 - Purchase Invoice Lines” (4 calls:
OnDeleteRecord → PropagateDeleteLine,OnFindRecord → LoadLines,OnInsertRecord → PropagateInsertLine, …) - Codeunit 5503 “Graph Mgt - Attachment Buffer” (3 calls:
FindParentDocumentSafe → GetPurchaseInvoiceHeaderFromId,FindParentDocumentWithDocumentTypeSafe → GetPurchaseInvoiceHeaderFromId,GetDocumentId → GetPurchaseInvoiceHeaderId) - Codeunit 9994 “API Data Upgrade” (2 calls:
OnRun → FixInvoicesCreatedFromOrders,OnRun → UpdateAggregateTableRecords) - Table 81 “Gen. Journal Line” (2 calls:
UpdateAppliesToInvoiceID → GetPurchaseInvoiceHeaderId,UpdateAppliesToInvoiceNo → GetPurchaseInvoiceHeaderFromId) - Codeunit 104000 “Upgrade - BaseApp” (1 call:
UpgradeInvoicesCreatedFromOrders → FixInvoicesCreatedFromOrders) - Codeunit 5446 “Purch. Invoice PDF Doc.Handler” (1 call:
GeneratePdfBlobWithDocumentType → GetPurchaseInvoiceHeaderFromId) - Codeunit 5467 “PDF Document Management” (1 call:
GeneratePdf → GetPurchaseInvoiceHeaderFromId) - Codeunit 5497 “Graph Mgt - Purch Order Buffer” (1 call:
TransferFromPurchaseLine → SetTaxGroupIdAndCode) - Codeunit 5527 “Graph Mgt - Purchase Invoice” (1 call:
HandleApiSetup → UpdateAggregateTableRecords) - Page 30066 “APIV2 - Purchase Orders” (1 call:
ReceiveAndInvoice → GetPurchaseInvoiceHeaderId) - Page 30083 “APIV2 - Purchase Credit Memos” (1 call:
SetInvoiceId → GetPurchaseInvoiceHeaderId)
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: "Purch. Inv. Aggregator"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.