Codeunit 5529 Purch. Inv. Aggregator

Base Application, Microsoft.Integration.Entity

Source AL, 1,145 lines

src/Layers/W1/BaseApp/Integration/Entity/PurchInvAggregator.Codeunit.allines 22 to 37 of 1,145, Copyright (c) Microsoft Corporation. MIT

codeunit 5529 "Purch. Inv. Aggregator"{    Permissions = tabledata "Purch. Inv. Header" = rimd,                  tabledata "Purch. Inv. Entity Aggregate" = rimd;    trigger OnRun()    begin    end;    var        GraphMgtGeneralTools: Codeunit "Graph Mgt - General Tools";        DocumentIDNotSpecifiedErr: Label 'You must specify a document id to get the lines.';        DocumentDoesNotExistErr: Label 'No document with the specified ID exists.';        MultipleDocumentsFoundForIdErr: Label 'Multiple documents have been found for the specified criteria.';        CannotModifyPostedInvioceErr: Label 'The invoice has been posted and can no longer be modified.';        CannotInsertALineThatAlreadyExistsErr: Label 'You cannot insert a line with a duplicate sequence number.';

All 1,145 lines

Public procedures 18 in 29

PropagateOnInsert(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)17-29
PropagateOnModify(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate"; var TempFieldBuffer: Record "Field Buffer" temporary)17-29
PropagateOnDelete(var PurchInvEntityAggregate: Record "Purch. Inv. Entity Aggregate")17-29
UpdateAggregateTableRecords()17-29
GetPurchaseInvoiceHeaderId(var PurchInvHeader: Record "Purch. Inv. Header"): Guid17-29
GetPurchaseInvoiceHeaderFromId(Id: Text; var PurchInvHeader: Record "Purch. Inv. Header"): Boolean17-29

All 18 procedures

Changes 3 in 22

List17181920212223242526272829
Procedures3
UpdateLineAmountsFromPurchaseLine(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate")new in 22
added
SetItemVariantId(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate"; ItemNo: Code[20]; VariantCode: Code[20])new in 22
added
UpdateInvoiceDiscountAmount(var PurchInvLineAggregate: Record "Purch. Inv. Line Aggregate")new in 22
added

All 3 changes in 17-29