Codeunit 5529 Purch. Inv. Aggregator

Base Application, Microsoft.Integration.Entity

src/Layers/W1/BaseApp/Integration/Entity/PurchInvAggregator.Codeunit.al54 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnAfterInsertPurchaseHeader line 47, local

  1. 49callsCheckValidRecord
  2. 49callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  3. 52callsCheckUpdatesDisabled
  4. 55callsInsertOrModifyFromPurchaseHeader

OnAfterModifyPurchaseHeader line 59, local

  1. 61callsCheckValidRecord
  2. 61callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  3. 64callsIsBackgroundPosting
  4. 67callsCheckUpdatesDisabled
  5. 70callsInsertOrModifyFromPurchaseHeader

OnAfterDeletePurchaseHeader line 74, local

  1. 78callsCheckValidRecord
  2. 78callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  3. 81callsCheckUpdatesDisabled
  4. 84callsTransferRecordIDs
  5. 89writesTable 5477 Purch. Inv. Entity Aggregate Delete

OnAfterResetRecalculateInvoiceDisc line 93, local

  1. 95callsCheckValidRecord
  2. 95callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  3. 98callsCheckUpdatesDisabled
  4. 101callsInsertOrModifyFromPurchaseHeader

OnAfterInsertPurchaseLine line 105, local

  1. 107callsCheckValidLineRecord
  2. 110callsCheckUpdatesDisabled
  3. 113callsModifyTotalsPurchaseLine

OnAfterModifyPurchaseLine line 117, local

  1. 119callsCheckValidLineRecord
  2. 122callsCheckUpdatesDisabled
  3. 125callsModifyTotalsPurchaseLine

OnAfterDeletePurchaseLine line 129, local

  1. 136callsCheckUpdatesDisabled
  2. 144callsModifyTotalsPurchaseLine
  3. 151callsBlankTotals

OnAfterInsertPurchaseInvoiceHeader line 155, local

  1. 157callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 160callsCheckUpdatesDisabled
  3. 163callsInsertOrModifyFromPurchaseInvoiceHeader

OnAfterModifyPurchaseInvoiceHeader line 167, local

  1. 169callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 172callsCheckUpdatesDisabled
  3. 175callsInsertOrModifyFromPurchaseInvoiceHeader

OnAfterRenamePurchaseInvoiceHeader line 179, local

  1. 183callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 186callsCheckUpdatesDisabled
  3. 192callsTable 5477 Purch. Inv. Entity Aggregate SetIsRenameAllowed
  4. 193writesTable 5477 Purch. Inv. Entity Aggregate Rename

OnAfterDeletePurchaseInvoiceHeader line 197, local

  1. 201callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 204callsCheckUpdatesDisabled
  3. 210writesTable 5477 Purch. Inv. Entity Aggregate Delete

OnAfterCalculatePurchaseDiscountOnPurchaseHeader line 214, local

  1. 216callsCheckValidRecord
  2. 216callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  3. 219callsCheckUpdatesDisabled
  4. 222callsInsertOrModifyFromPurchaseHeader

OnAfterInsertVendorLedgerEntry line 226, local

  1. 228callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 231callsCheckUpdatesDisabled
  3. 234callsSetStatusOptionFromVendLedgerEntry

OnAfterModifyVendorLedgerEntry line 238, local

  1. 240callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 243callsCheckUpdatesDisabled
  3. 246callsSetStatusOptionFromVendLedgerEntry

OnAfterRenameVendorLedgerEntry line 250, local

  1. 252callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 255callsCheckUpdatesDisabled
  3. 258callsSetStatusOptionFromVendLedgerEntry

OnAfterDeleteVendorLedgerEntry line 262, local

  1. 264callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 267callsCheckUpdatesDisabled
  3. 270callsSetStatusOptionFromVendLedgerEntry

OnAfterInsertCancelledDocument line 274, local

  1. 276callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 279callsCheckUpdatesDisabled
  3. 282callsSetStatusOptionFromCancelledDocument

OnAfterModifyCancelledDocument line 286, local

  1. 288callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 291callsCheckUpdatesDisabled
  3. 294callsSetStatusOptionFromCancelledDocument

OnAfterRenameCancelledDocument line 298, local

  1. 300callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 303callsCheckUpdatesDisabled
  3. 306callsSetStatusOptionFromCancelledDocument
  4. 307callsSetStatusOptionFromCancelledDocument

OnAfterDeleteCancelledDocument line 311, local

  1. 313callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 316callsCheckUpdatesDisabled
  3. 319callsSetStatusOptionFromCancelledDocument

OnBeforePurchInvHeaderInsert line 323, local

  1. 329callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 337callsCheckUpdatesDisabled
  3. 353writesTable 5477 Purch. Inv. Entity Aggregate Delete
  4. 356callsTable 5477 Purch. Inv. Entity Aggregate GetIsRenameAllowed
  5. 357callsTable 5477 Purch. Inv. Entity Aggregate SetIsRenameAllowed
  6. 358writesTable 5477 Purch. Inv. Entity Aggregate Rename
  7. 359callsTable 5477 Purch. Inv. Entity Aggregate SetIsRenameAllowed

PropagateOnInsert line 363

  1. 370callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 383callsTransferFieldsWithValidate
  3. 400callsTransferFieldsWithValidate

PropagateOnModify line 408

  1. 414callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 426callsTransferFieldsWithValidate
  3. 436callsTransferFieldsWithValidate

PropagateOnDelete line 442

  1. 447callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 454writesTable 122 Purch. Inv. Header Delete(true)
  3. 457writesTable 38 Purchase Header Delete(true)

UpdateAggregateTableRecords line 461

  1. 472callsInsertOrModifyFromPurchaseHeader
  2. 473callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
  3. 478callsInsertOrModifyFromPurchaseInvoiceHeader
  4. 479callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
  5. 486writesTable 5477 Purch. Inv. Entity Aggregate Delete(true)
  6. 487callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
  7. 495writesTable 5477 Purch. Inv. Entity Aggregate Delete(true)
  8. 496callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit

InsertOrModifyFromPurchaseHeader line 501, local

  1. 513callsAssignTotalsFromPurchaseHeader
  2. 514callsTable 5477 Purch. Inv. Entity Aggregate UpdateReferencedRecordIds
  3. 517writesTable 5477 Purch. Inv. Entity Aggregate Modify(true)
  4. 519writesTable 5477 Purch. Inv. Entity Aggregate Insert(true)

InsertOrModifyFromPurchaseInvoiceHeader line 541, local

  1. 549callsGetPurchaseInvoiceHeaderId
  2. 552callsSetStatusOptionFromPurchaseInvoiceHeader
  3. 553callsAssignTotalsFromPurchaseInvoiceHeader
  4. 554callsTable 5477 Purch. Inv. Entity Aggregate UpdateReferencedRecordIds
  5. 557writesTable 5477 Purch. Inv. Entity Aggregate Modify(true)
  6. 559writesTable 5477 Purch. Inv. Entity Aggregate Insert(true)

SetStatusOptionFromVendLedgerEntry line 583, local

  1. 587callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 598callsUpdateStatusIfChanged

SetStatusOptionFromCancelledDocument line 602, local

  1. 606callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 620callsUpdateStatusIfChanged

UpdateUnitOfMeasure line 623

  1. 629callsCodeunit 5470 Graph Collection Mgt - Item UpdateOrCreateItemUnitOfMeasureFromSalesDocument
  2. 632writesTable 27 Item Modify(true)

UpdateStatusIfChanged line 635, local

  1. 643callsCheckUpdatesDisabled
  2. 648callsSetStatusOptionFromPurchaseInvoiceHeader
  3. 650writesTable 5477 Purch. Inv. Entity Aggregate Modify(true)

AssignTotalsFromPurchaseHeader line 653, local

  1. 661callsBlankTotals
  2. 665callsAssignTotalsFromPurchaseLine

AssignTotalsFromPurchaseInvoiceHeader line 668, local

  1. 675callsBlankTotals
  2. 679callsAssignTotalsFromPurchaseInvoiceLine

AssignTotalsFromPurchaseLine line 682, local

  1. 694callsCodeunit 57 Document Totals CalculatePurchaseTotals

AssignTotalsFromPurchaseInvoiceLine line 702, local

  1. 716callsCodeunit 57 Document Totals CalculatePostedPurchInvoiceTotals

BlankTotals line 724, local

  1. 731callsCheckUpdatesDisabled
  2. 739writesTable 5477 Purch. Inv. Entity Aggregate Modify

ModifyTotalsPurchaseLine line 753, local

  1. 758callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
  2. 767callsCheckUpdatesDisabled
  3. 776callsAssignTotalsFromPurchaseLine
  4. 777writesTable 5477 Purch. Inv. Entity Aggregate Modify(true)

TransferPurchaseInvoiceLineAggregateToPurchaseLine line 780, local

  1. 787callsTransferFieldsWithValidate

TransferRecordIDs line 792, local

  1. 809writesTable 5477 Purch. Inv. Entity Aggregate Delete(true)
  2. 812callsTable 5477 Purch. Inv. Entity Aggregate GetIsRenameAllowed
  3. 813callsTable 5477 Purch. Inv. Entity Aggregate SetIsRenameAllowed
  4. 814writesTable 5477 Purch. Inv. Entity Aggregate Rename
  5. 815callsTable 5477 Purch. Inv. Entity Aggregate SetIsRenameAllowed
  6. 819writesTable 122 Purch. Inv. Header Modify(true)

TransferFieldsWithValidate line 822, local

  1. 829callsCodeunit 701 Data Type Management GetRecordRef

RedistributeInvoiceDiscounts line 846

  1. 857runsCodeunit 66 Purch - Calc Disc. By Type

LoadLines line 862

  1. 874callsLoadPurchaseInvoiceLines
  2. 876callsLoadPurchaseLines

LoadPurchaseInvoiceLines line 879, local

  1. 891callsCodeunit 5477 Sales Invoice Aggregator GetIdFromDocumentIdAndSequence
  2. 901callsTable 123 Purch. Inv. Line GetCurrencyCode
  3. 903callsTable 5478 Purch. Inv. Line Aggregate UpdateReferencedRecordIds
  4. 904callsUpdateLineAmountsFromPurchaseInvoiceLine
  5. 905callsSetItemVariantId
  6. 906writesTable 5478 Purch. Inv. Line Aggregate Insert(true)

LoadPurchaseLines line 910, local

  1. 919callsTransferFromPurchaseLine
  2. 920writesTable 5478 Purch. Inv. Line Aggregate Insert(true)

TransferFromPurchaseLine line 924, local

  1. 932callsCodeunit 5477 Sales Invoice Aggregator GetIdFromDocumentIdAndSequence
  2. 934callsSetTaxGroupIdAndCode
  3. 942callsTable 5478 Purch. Inv. Line Aggregate UpdateReferencedRecordIds
  4. 943callsUpdateLineAmountsFromPurchaseLine
  5. 944callsSetItemVariantId

PropagateInsertLine line 947

  1. 953callsVerifyCRUDIsPossibleForLine
  2. 971callsTransferPurchaseInvoiceLineAggregateToPurchaseLine
  3. 972writesTable 39 Purchase Line Insert(true)
  4. 974callsRedistributeInvoiceDiscounts
  5. 977callsTransferFromPurchaseLine

PropagateModifyLine line 980

  1. 985callsVerifyCRUDIsPossibleForLine
  2. 990callsTransferPurchaseInvoiceLineAggregateToPurchaseLine
  3. 992writesTable 39 Purchase Line Modify(true)
  4. 994callsRedistributeInvoiceDiscounts
  5. 997callsTransferFromPurchaseLine

PropagateDeleteLine line 1000

  1. 1005callsVerifyCRUDIsPossibleForLine
  2. 1008writesTable 39 Purchase Line Delete(true)
  3. 1009callsRedistributeInvoiceDiscounts

UpdateLineAmountsFromPurchaseLine line 1039

  1. 1043callsUpdateInvoiceDiscountAmount

UpdateLineAmountsFromPurchaseInvoiceLine line 1054, local

  1. 1058callsUpdateInvoiceDiscountAmount

CheckValidLineRecord line 1076, local

  1. 1081callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled

CheckUpdatesDisabled line 1098, local

  1. 1103callsCodeunit 5532 Disable Aggregate Table Update OnGetAggregateTablesUpdateEnabled

FixInvoicesCreatedFromOrders line 1111

  1. 1120writesTable 122 Purch. Inv. Header ModifyAll
  2. 1122callsCodeunit 9999 Upgrade Tag HasUpgradeTag
  3. 1122callsCodeunit 9998 Upgrade Tag Definitions GetFixAPIPurchaseInvoicesCreatedFromOrders
  4. 1123callsCodeunit 9999 Upgrade Tag SetUpgradeTag
  5. 1123callsCodeunit 9998 Upgrade Tag Definitions GetFixAPIPurchaseInvoicesCreatedFromOrders

SetTaxGroupIdAndCode line 1126

  1. 1133callsTable 98 General Ledger Setup UseVat