Codeunit "Sales Invoice Aggregator"

ID 5477
Namespace: Microsoft.Integration.Entity

Properties

Name Value
Permissions tabledata "Sales Invoice Header" = rimd, tabledata "Sales Invoice Entity Aggregate" = rimd

Methods

PropagateOnInsert

procedure PropagateOnInsert(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate", var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
SalesInvoiceEntityAggregate Table Microsoft.Integration.Entity."Sales Invoice Entity Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateOnModify

procedure PropagateOnModify(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate", var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
SalesInvoiceEntityAggregate Table Microsoft.Integration.Entity."Sales Invoice Entity Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

ChangeOnlyContainsWhitelistedFields

procedure ChangeOnlyContainsWhitelistedFields(var TempFieldBuffer: Record "Field Buffer"): Boolean

Parameters

Name Type Description
TempFieldBuffer Table System.Reflection."Field Buffer"

Returns

Type Description
Boolean

PropagateOnDelete

procedure PropagateOnDelete(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate")

Parameters

Name Type Description
SalesInvoiceEntityAggregate Table Microsoft.Integration.Entity."Sales Invoice Entity Aggregate"

UpdateAggregateTableRecords

procedure UpdateAggregateTableRecords()

GetSalesInvoiceHeaderId

procedure GetSalesInvoiceHeaderId(var SalesInvoiceHeader: Record "Sales Invoice Header"): Guid

Parameters

Name Type Description
SalesInvoiceHeader Table Microsoft.Sales.History."Sales Invoice Header"

Returns

Type Description
Guid

GetSalesInvoiceHeaderFromId

procedure GetSalesInvoiceHeaderFromId(Id: Text, var SalesInvoiceHeader: Record "Sales Invoice Header"): Boolean

Parameters

Name Type Description
Id Text
SalesInvoiceHeader Table Microsoft.Sales.History."Sales Invoice Header"

Returns

Type Description
Boolean

SetTaxGroupIdAndCode

procedure SetTaxGroupIdAndCode(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary, TaxGroupCode: Code[20], VATProductPostingGroupCode: Code[20], VATIdentifier: Code[20])

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"
TaxGroupCode Code[20]
VATProductPostingGroupCode Code[20]
VATIdentifier Code[20]

SetItemVariantId

procedure SetItemVariantId(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary, ItemNo: Code[20], VariantCode: Code[20])

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"
ItemNo Code[20]
VariantCode Code[20]

UpdateUnitOfMeasure

procedure UpdateUnitOfMeasure(var Item: Record Item, JSONUnitOfMeasureTxt: Text)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
JSONUnitOfMeasureTxt Text

RedistributeInvoiceDiscounts

procedure RedistributeInvoiceDiscounts(var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate")

Parameters

Name Type Description
SalesInvoiceEntityAggregate Table Microsoft.Integration.Entity."Sales Invoice Entity Aggregate"

LoadLines

procedure LoadLines(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary, DocumentIdFilter: Text)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"
DocumentIdFilter Text

TransferFromSalesLineToAggregateLine

procedure TransferFromSalesLineToAggregateLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary, var SalesLine: Record "Sales Line", DocumentId: Guid, PricesIncludingVAT: Boolean)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"
SalesLine Table Microsoft.Sales.Document."Sales Line"
DocumentId Guid
PricesIncludingVAT Boolean

PropagateInsertLine

procedure PropagateInsertLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary, var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateModifyLine

procedure PropagateModifyLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary, var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateDeleteLine

procedure PropagateDeleteLine(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"

PropagateMultipleLinesUpdate

procedure PropagateMultipleLinesUpdate(var TempNewSalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary)

Parameters

Name Type Description
TempNewSalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"

UpdateInvoiceDiscountAmount

procedure UpdateInvoiceDiscountAmount(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"

VerifyCanUpdateUOM

procedure VerifyCanUpdateUOM(var SalesInvoiceLineAggregate: Record "Sales Invoice Line Aggregate" temporary)

Parameters

Name Type Description
SalesInvoiceLineAggregate Table Microsoft.Integration.Entity."Sales Invoice Line Aggregate"

FixInvoicesCreatedFromOrders

procedure FixInvoicesCreatedFromOrders()

Events

OnBeforeSetStatusOptionFromSalesInvoiceHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeSetStatusOptionFromSalesInvoiceHeader(var SalesInvoiceHeader: Record "Sales Invoice Header", var SalesInvoiceEntityAggregate: Record "Sales Invoice Entity Aggregate", var IsHandled: Boolean)

Parameters

Name Type Description
SalesInvoiceHeader Table Microsoft.Sales.History."Sales Invoice Header"
SalesInvoiceEntityAggregate Table Microsoft.Integration.Entity."Sales Invoice Entity Aggregate"
IsHandled Boolean

OnBeforeTransferRecordIDs

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferRecordIDs(var SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

See also