Codeunit "Purch. Inv. Aggregator"

ID 5529
Namespace: Microsoft.Integration.Entity

Properties

Name Value
Permissions tabledata "Purch. Inv. Header" = rimd, tabledata "Purch. Inv. Entity Aggregate" = rimd

Methods

PropagateOnInsert

procedure PropagateOnInsert(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate", var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
PurchInvEntityAggregate Table Microsoft.Integration.Entity."Purch. Inv. Entity Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateOnModify

procedure PropagateOnModify(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate", var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
PurchInvEntityAggregate Table Microsoft.Integration.Entity."Purch. Inv. Entity Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateOnDelete

procedure PropagateOnDelete(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate")

Parameters

Name Type Description
PurchInvEntityAggregate Table Microsoft.Integration.Entity."Purch. Inv. Entity Aggregate"

UpdateAggregateTableRecords

procedure UpdateAggregateTableRecords()

GetPurchaseInvoiceHeaderId

procedure GetPurchaseInvoiceHeaderId(var PurchInvHeader: Record "Purch. Inv. Header"): Guid

Parameters

Name Type Description
PurchInvHeader Table Microsoft.Purchases.History."Purch. Inv. Header"

Returns

Type Description
Guid

GetPurchaseInvoiceHeaderFromId

procedure GetPurchaseInvoiceHeaderFromId(Id: Text, var PurchInvHeader: Record "Purch. Inv. Header"): Boolean

Parameters

Name Type Description
Id Text
PurchInvHeader Table Microsoft.Purchases.History."Purch. Inv. Header"

Returns

Type Description
Boolean

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 PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate")

Parameters

Name Type Description
PurchInvEntityAggregate Table Microsoft.Integration.Entity."Purch. Inv. Entity Aggregate"

LoadLines

procedure LoadLines(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary, DocumentIdFilter: Text)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"
DocumentIdFilter Text

PropagateInsertLine

procedure PropagateInsertLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary, var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateModifyLine

procedure PropagateModifyLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary, var TempFieldBuffer: Record "Field Buffer" temporary)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"
TempFieldBuffer Table System.Reflection."Field Buffer"

PropagateDeleteLine

procedure PropagateDeleteLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"

UpdateLineAmountsFromPurchaseLine

procedure UpdateLineAmountsFromPurchaseLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"

SetItemVariantId

procedure SetItemVariantId(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary, ItemNo: Code[20], VariantCode: Code[20])

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"
ItemNo Code[20]
VariantCode Code[20]

UpdateInvoiceDiscountAmount

procedure UpdateInvoiceDiscountAmount(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"

VerifyCanUpdateUOM

procedure VerifyCanUpdateUOM(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary)

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"

FixInvoicesCreatedFromOrders

procedure FixInvoicesCreatedFromOrders()

SetTaxGroupIdAndCode

procedure SetTaxGroupIdAndCode(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate" temporary, TaxGroupCode: Code[20], VATProductPostingGroupCode: Code[20], VATIdentifier: Code[20])

Parameters

Name Type Description
PurchInvLineAggregate Table Microsoft.Integration.Entity."Purch. Inv. Line Aggregate"
TaxGroupCode Code[20]
VATProductPostingGroupCode Code[20]
VATIdentifier Code[20]

See also