codeunitIntegration & APIsofficial - Microsoftderived - from the source, no model text

Codeunit 5477 "Sales Invoice Aggregator"

Base Application · Microsoft.Integration.Entity

Across versions

  1. BC23present
  2. BC243 procedures added
  3. BC25-26unchanged
  4. BC27declaration changed
  5. BC28-30unchanged

Neighbourhood 30 connected objects and pages

Codeunit 5465 "Graph Mgt - General Tools" (calls, 26 links)Graph Mgt - General ToolsPage 20012 "APIV1 - Sales Invoices" (calls, 12 links)APIV1 - Sales InvoicesPage 30012 "APIV2 - Sales Invoices" (calls, 12 links)APIV2 - Sales InvoicesCodeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf." (calls, 5 links)Graph Mgt - Sal. Cr. Memo Buf.Codeunit 10 "Type Helper" (calls, 4 links)Codeunit 5506 "Graph Mgt - Sales Quote Buffer" (calls, 4 links)Graph Mgt - Sales Quote BufferPage 20043 "APIV1 - Sales Invoice Lines" (calls, 4 links)APIV1 - Sales Invoice LinesPage 30043 "APIV2 - Sales Invoice Lines" (calls, 4 links)APIV2 - Sales Invoice LinesCodeunit 5496 "Graph Mgt - Sales Order Buffer" (calls, 3 links)Graph Mgt - Sales Order BufferCodeunit 5503 "Graph Mgt - Attachment Buffer" (calls, 3 links)Graph Mgt - Attachment BufferCodeunit 9994 "API Data Upgrade" (calls, 3 links)API Data UpgradeCodeunit 5511 "Graph Mgt - Purch. Cr. Memo" (calls, 2 links)Codeunit 5529 "Purch. Inv. Aggregator" (calls, 2 links)Purch. Inv. AggregatorCodeunit 57 "Document Totals" (calls, 2 links)Document TotalsCodeunit 9999 "Upgrade Tag" (calls, 2 links)Upgrade TagTable 81 "Gen. Journal Line" (calls, 2 links)Gen. Journal LineCodeunit 104000 "Upgrade - BaseApp" (calls)Codeunit 1409 "Sales Inv. Header - Edit" (calls)Codeunit 5450 "Sales Invoice PDF Doc.Handler" (calls)Codeunit 5467 "PDF Document Management" (calls)Codeunit 5470 "Graph Collection Mgt - Item" (calls)Codeunit 5475 "Graph Mgt - Sales Invoice" (calls)Codeunit 5497 "Graph Mgt - Purch Order Buffer" (calls)Codeunit 5532 "Disable Aggregate Table Update" (calls)Codeunit 56 "Sales - Calc Discount By Type" (calls)Codeunit 9998 "Upgrade Tag Definitions" (calls)Page 20028 "APIV1 - Sales Orders" (calls)Page 20038 "APIV1 - Sales Credit Memos" (calls)Page 30028 "APIV2 - Sales Orders" (calls)Page 30038 "APIV2 - Sales Credit Memos" (calls)

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.Integration.Entity · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Permissions tabledata “Sales Invoice Header” = rimd, tabledata “Sales Invoice Entity Aggregate” = rimd

Events published

  • OnBeforeSetStatusOptionFromSalesInvoiceHeader(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate"; var IsHandled: Boolean) (integration)
  • OnBeforeTransferRecordIDs(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) (integration)

Event subscriptions

  • OnAfterInsertSalesHeader subscribes to Table “Sales Header” OnAfterInsertEvent
  • OnAfterModifySalesHeader subscribes to Table “Sales Header” OnAfterModifyEvent
  • OnAfterDeleteSalesHeader subscribes to Table “Sales Header” OnAfterDeleteEvent
  • OnAfterResetRecalculateInvoiceDisc subscribes to Codeunit “Sales - Calc Discount By Type” OnAfterResetRecalculateInvoiceDisc
  • OnAfterInsertSalesLine subscribes to Table “Sales Line” OnAfterInsertEvent
  • OnAfterModifySalesLine subscribes to Table “Sales Line” OnAfterModifyEvent
  • OnAfterDeleteSalesLine subscribes to Table “Sales Line” OnAfterDeleteEvent
  • OnAfterInsertSalesInvoiceHeader subscribes to Table “Sales Invoice Header” OnAfterInsertEvent
  • OnAfterModifySalesInvoiceHeader subscribes to Table “Sales Invoice Header” OnAfterModifyEvent
  • OnAfterRenameSalesInvoiceHeader subscribes to Table “Sales Invoice Header” OnAfterRenameEvent
  • OnAfterDeleteSalesInvoiceHeader subscribes to Table “Sales Invoice Header” OnAfterDeleteEvent
  • OnAfterCalculateSalesDiscountOnSalesHeader subscribes to Codeunit “Sales-Calc. Discount” OnAfterCalcSalesDiscount
  • OnAfterInsertCustomerLedgerEntry subscribes to Table “Cust. Ledger Entry” OnAfterInsertEvent
  • OnAfterModifyCustomerLedgerEntry subscribes to Table “Cust. Ledger Entry” OnAfterModifyEvent
  • OnAfterRenameCustomerLedgerEntry subscribes to Table “Cust. Ledger Entry” OnAfterRenameEvent
  • OnAfterDeleteCustomerLedgerEntry subscribes to Table “Cust. 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
  • OnBeforeSalesInvHeaderInsert subscribes to Codeunit “Sales-Post” OnBeforeSalesInvHeaderInsert

Procedures

  • PropagateOnInsert(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)
  • PropagateOnModify(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)
  • ChangeOnlyContainsWhitelistedFields(var TempFieldBuffer: Record "Field Buffer"): Boolean + BC24
  • PropagateOnDelete(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate")
  • UpdateAggregateTableRecords()
  • GetSalesInvoiceHeaderId(var SalesInvoiceHeader: Record "Sales Invoice Header"): Guid
  • GetSalesInvoiceHeaderFromId(Id: text; var SalesInvoiceHeader: Record "Sales Invoice Header"): Boolean
  • SetTaxGroupIdAndCode(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate"; TaxGroupCode: Code[20]; VATProductPostingGroupCode: Code[20]; VATIdentifier: Code[20])
  • SetItemVariantId(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate"; ItemNo: Code[20]; VariantCode: Code[20])
  • UpdateUnitOfMeasure(var Item: Record Item; JSONUnitOfMeasureTxt: Text)
  • RedistributeInvoiceDiscounts(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate")
  • LoadLines(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate"; DocumentIdFilter: Text)
  • TransferFromSalesLineToAggregateLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate"; var SalesLine: Record "Sales Line"; DocumentId: Guid; PricesIncludingVAT: Boolean)
  • PropagateInsertLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)
  • PropagateModifyLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)
  • PropagateDeleteLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate")
  • PropagateMultipleLinesUpdate(var TempNewSalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary)
  • UpdateInvoiceDiscountAmount(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate")
  • VerifyCanUpdateUOM(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate")
  • FixInvoicesCreatedFromOrders()
  • GetIdFromDocumentIdAndSequence(DocumentId: Guid; Sequence: Integer): Text[50]

Plus 27 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.

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: "Sales Invoice Aggregator"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources