Codeunit 5477 Sales Invoice Aggregator
src/Layers/W1/BaseApp/Integration/Entity/SalesInvoiceAggregator.Codeunit.al60 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnAfterInsertSalesHeader line 49, local
- 51callsCheckValidRecord
- 51callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 54callsCheckUpdatesDisabled
- 57callsInsertOrModifyFromSalesHeader
OnAfterModifySalesHeader line 61, local
- 63callsCheckValidRecord
- 63callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 66callsIsBackgroundPosting
- 69callsCheckUpdatesDisabled
- 72callsInsertOrModifyFromSalesHeader
OnAfterDeleteSalesHeader line 76, local
- 80callsCheckValidRecord
- 80callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 83callsCheckUpdatesDisabled
- 86callsTransferRecordIDs
- 91writesTable 5475 Sales Invoice Entity Aggregate Delete
OnAfterResetRecalculateInvoiceDisc line 95, local
- 97callsCheckValidRecord
- 97callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 100callsCheckUpdatesDisabled
- 103callsInsertOrModifyFromSalesHeader
OnAfterInsertSalesLine line 107, local
OnAfterModifySalesLine line 119, local
OnAfterDeleteSalesLine line 131, local
OnAfterInsertSalesInvoiceHeader line 157, local
- 159callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 162callsCheckUpdatesDisabled
- 165callsInsertOrModifyFromSalesInvoiceHeader
OnAfterModifySalesInvoiceHeader line 169, local
- 171callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 174callsCheckUpdatesDisabled
- 177callsInsertOrModifyFromSalesInvoiceHeader
OnAfterRenameSalesInvoiceHeader line 181, local
- 185callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 188callsCheckUpdatesDisabled
- 194callsTable 5475 Sales Invoice Entity Aggregate SetIsRenameAllowed
- 195writesTable 5475 Sales Invoice Entity Aggregate Rename
OnAfterDeleteSalesInvoiceHeader line 199, local
- 203callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 206callsCheckUpdatesDisabled
- 212writesTable 5475 Sales Invoice Entity Aggregate Delete
OnAfterCalculateSalesDiscountOnSalesHeader line 216, local
- 218callsCheckValidRecord
- 218callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 221callsCheckUpdatesDisabled
- 224callsInsertOrModifyFromSalesHeader
OnAfterInsertCustomerLedgerEntry line 228, local
- 230callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 233callsSetStatusOptionFromCustLedgerEntry
OnAfterModifyCustomerLedgerEntry line 237, local
- 239callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 242callsSetStatusOptionFromCustLedgerEntry
OnAfterRenameCustomerLedgerEntry line 246, local
- 248callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 251callsSetStatusOptionFromCustLedgerEntry
OnAfterDeleteCustomerLedgerEntry line 255, local
- 257callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 260callsSetStatusOptionFromCustLedgerEntry
OnAfterInsertCancelledDocument line 264, local
- 266callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 269callsSetStatusOptionFromCancelledDocument
OnAfterModifyCancelledDocument line 273, local
- 275callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 278callsSetStatusOptionFromCancelledDocument
OnAfterRenameCancelledDocument line 282, local
OnAfterDeleteCancelledDocument line 292, local
- 294callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 297callsSetStatusOptionFromCancelledDocument
OnBeforeSalesInvHeaderInsert line 301, local
- 307callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 310callsCheckUpdatesDisabled
- 331writesTable 5475 Sales Invoice Entity Aggregate Delete
- 334callsTable 5475 Sales Invoice Entity Aggregate GetIsRenameAllowed
- 335callsTable 5475 Sales Invoice Entity Aggregate SetIsRenameAllowed
- 336writesTable 5475 Sales Invoice Entity Aggregate Rename
- 337callsTable 5475 Sales Invoice Entity Aggregate SetIsRenameAllowed
PropagateOnInsert line 341
- 348callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 359callsCodeunit 10 Type Helper TransferFieldsWithValidate
- 365callsTable 36 Sales Header CopySellToAddressToBillToAddress
- 366callsTable 36 Sales Header SetDefaultPaymentServices
- 367callsSetShortcutDimensions
- 368writesTable 36 Sales Header Modify(true)
PropagateOnModify line 374
PropagateOnModifyToSalesInvoiceHeader line 385, local
- 391callsChangeOnlyContainsWhitelistedFields
- 395callsCodeunit 10 Type Helper TransferFieldsWithValidate
- 397writesTable 112 Sales Invoice Header Modify(true)
- 398runsCodeunit 1409 Sales Inv. Header - Edit
PropagateOnModifyToSalesHeader line 402, local
- 415callsCodeunit 10 Type Helper TransferFieldsWithValidate
- 418callsTable 36 Sales Header CopySellToAddressToBillToAddress
- 421writesTable 36 Sales Header Modify(true)
- 423callsTable 36 Sales Header SetDefaultPaymentServices
- 424writesTable 36 Sales Header Insert(true)
PropagateOnDelete line 449
- 455callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 460callsCodeunit 5465 Graph Mgt - General Tools CleanAggregateWithoutParent
- 466writesTable 112 Sales Invoice Header Delete(true)
- 469callsCodeunit 5465 Graph Mgt - General Tools CleanAggregateWithoutParent
- 473writesTable 36 Sales Header Delete(true)
UpdateAggregateTableRecords line 477
- 488callsInsertOrModifyFromSalesHeader
- 489callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
- 494callsInsertOrModifyFromSalesInvoiceHeader
- 495callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
- 502writesTable 5475 Sales Invoice Entity Aggregate Delete(true)
- 503callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
- 511writesTable 5475 Sales Invoice Entity Aggregate Delete(true)
- 512callsCodeunit 9994 API Data Upgrade CountRecordsAndCommit
InsertOrModifyFromSalesHeader line 536, local
- 557callsAssignTotalsFromSalesHeader
- 558callsTable 5475 Sales Invoice Entity Aggregate UpdateReferencedRecordIds
- 561writesTable 5475 Sales Invoice Entity Aggregate Modify(true)
- 563writesTable 5475 Sales Invoice Entity Aggregate Insert(true)
InsertOrModifyFromSalesInvoiceHeader line 566, local
- 574callsGetSalesInvoiceHeaderId
- 577callsSetStatusOptionFromSalesInvoiceHeader
- 578callsAssignTotalsFromSalesInvoiceHeader
- 579callsTable 5475 Sales Invoice Entity Aggregate UpdateReferencedRecordIds
- 582writesTable 5475 Sales Invoice Entity Aggregate Modify(true)
- 584writesTable 5475 Sales Invoice Entity Aggregate Insert(true)
SetStatusOptionFromSalesInvoiceHeader line 587, local
- 592raisesOnBeforeSetStatusOptionFromSalesInvoiceHeaderIsHandled
SetStatusOptionFromCustLedgerEntry line 615, local
- 620callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 623callsCheckUpdatesDisabled
- 634callsUpdateStatusIfChanged
SetStatusOptionFromCancelledDocument line 638, local
- 643callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
- 646callsCheckUpdatesDisabled
- 660callsUpdateStatusIfChanged
SetTaxGroupIdAndCode line 663
- 669callsTable 98 General Ledger Setup UseVat
UpdateUnitOfMeasure line 688
- 694callsCodeunit 5470 Graph Collection Mgt - Item UpdateOrCreateItemUnitOfMeasureFromSalesDocument
- 697writesTable 27 Item Modify(true)
UpdateStatusIfChanged line 700, local
- 710callsSetStatusOptionFromSalesInvoiceHeader
- 712writesTable 5475 Sales Invoice Entity Aggregate Modify(true)
AssignTotalsFromSalesHeader line 715, local
AssignTotalsFromSalesInvoiceHeader line 730, local
AssignTotalsFromSalesLine line 744, local
- 756callsCodeunit 57 Document Totals CalculateSalesTotals
AssignTotalsFromSalesInvoiceLine line 765, local
- 780callsCodeunit 57 Document Totals CalculatePostedSalesInvoiceTotals
BlankTotals line 792, local
- 799callsCheckUpdatesDisabled
- 807writesTable 5475 Sales Invoice Entity Aggregate Modify
CheckUpdatesDisabled line 822, local
- 827callsCodeunit 5532 Disable Aggregate Table Update OnGetAggregateTablesUpdateEnabled
ModifyTotalsSalesLine line 835, local
- 849callsCheckUpdatesDisabled
- 852callsAssignTotalsFromSalesLine
- 853writesTable 5475 Sales Invoice Entity Aggregate Modify(true)
TransferSalesInvoiceLineAggregateToSalesLine line 856, local
- 865callsCodeunit 10 Type Helper TransferFieldsWithValidate
TransferRecordIDs line 869, local
- 877raisesOnBeforeTransferRecordIDsIsHandled
- 892writesTable 5475 Sales Invoice Entity Aggregate Delete(true)
- 895callsTable 5475 Sales Invoice Entity Aggregate GetIsRenameAllowed
- 896callsTable 5475 Sales Invoice Entity Aggregate SetIsRenameAllowed
- 897writesTable 5475 Sales Invoice Entity Aggregate Rename
- 898callsTable 5475 Sales Invoice Entity Aggregate SetIsRenameAllowed
- 902writesTable 112 Sales Invoice Header Modify(true)
RedistributeInvoiceDiscounts line 905
LoadLines line 921
LoadSalesInvoiceLines line 938, local
- 950callsGetIdFromDocumentIdAndSequence
- 952callsSetTaxGroupIdAndCode
- 959callsTable 113 Sales Invoice Line GetCurrencyCode
- 961callsTable 5476 Sales Invoice Line Aggregate SetDiscountValue
- 962callsTable 5476 Sales Invoice Line Aggregate UpdateReferencedRecordIds
- 963callsUpdateLineAmountsFromSalesInvoiceLine
- 964callsCodeunit 5477 Sales Invoice Aggregator SetItemVariantId
- 965writesTable 5476 Sales Invoice Line Aggregate Insert(true)
LoadSalesLines line 969, local
- 978callsTransferFromSalesLine
- 979writesTable 5476 Sales Invoice Line Aggregate Insert(true)
TransferFromSalesLine line 983, local
TransferFromSalesLineToAggregateLine line 989
- 995callsGetIdFromDocumentIdAndSequence
- 998callsSetTaxGroupIdAndCode
- 1006callsTable 5476 Sales Invoice Line Aggregate SetDiscountValue
- 1007callsTable 5476 Sales Invoice Line Aggregate UpdateReferencedRecordIds
- 1008callsUpdateLineAmountsFromSalesLine
- 1009callsCodeunit 5477 Sales Invoice Aggregator SetItemVariantId
PropagateInsertLine line 1012
- 1018callsVerifyCRUDIsPossibleForLine
- 1036callsTransferSalesInvoiceLineAggregateToSalesLine
- 1037writesTable 37 Sales Line Insert(true)
- 1040callsRedistributeInvoiceDiscounts
- 1043callsTransferFromSalesLine
PropagateModifyLine line 1046
- 1051callsVerifyCRUDIsPossibleForLine
- 1056callsTransferSalesInvoiceLineAggregateToSalesLine
- 1058writesTable 37 Sales Line Modify(true)
- 1061callsRedistributeInvoiceDiscounts
- 1064callsTransferFromSalesLine
PropagateDeleteLine line 1067
- 1072callsVerifyCRUDIsPossibleForLine
- 1075writesTable 37 Sales Line Delete(true)
- 1077callsRedistributeInvoiceDiscounts
PropagateMultipleLinesUpdate line 1081
- 1089callsVerifyCRUDIsPossibleForLine
- 1090callsCodeunit 5506 Graph Mgt - Sales Quote Buffer GetFieldSetBufferWithAllFieldsSet
- 1095writesTable 37 Sales Line DeleteAll(true)
- 1099callsLoadLines
- 1107callsPropagateDeleteLine
- 1117callsPropagateInsertLine
- 1119callsPropagateModifyLine
UpdateLineAmountsFromSalesLine line 1152, local
- 1154callsTable 37 Sales Line GetLineAmountExclVAT
- 1155callsTable 37 Sales Line GetLineAmountInclVAT
- 1158callsUpdateInvoiceDiscountAmount
UpdateLineAmountsFromSalesInvoiceLine line 1161, local
- 1163callsTable 113 Sales Invoice Line GetLineAmountExclVAT
- 1164callsTable 113 Sales Invoice Line GetLineAmountInclVAT
- 1167callsUpdateInvoiceDiscountAmount
FixInvoicesCreatedFromOrders line 1185
- 1194writesTable 112 Sales Invoice Header ModifyAll
- 1195callsCodeunit 9999 Upgrade Tag HasUpgradeTag
- 1195callsCodeunit 9998 Upgrade Tag Definitions GetFixAPISalesInvoicesCreatedFromOrders
- 1196callsCodeunit 9999 Upgrade Tag SetUpgradeTag
- 1196callsCodeunit 9998 Upgrade Tag Definitions GetFixAPISalesInvoicesCreatedFromOrders
CheckValidLineRecord line 1199, local
- 1204callsCodeunit 5465 Graph Mgt - General Tools IsApiEnabled
SetShortcutDimensions line 1213, local
- 1218validatesTable 36 Sales Header Shortcut Dimension 1 Code
- 1221validatesTable 36 Sales Header Shortcut Dimension 2 Code
GetIdFromDocumentIdAndSequence line 1225
- 1229callsCodeunit 5465 Graph Mgt - General Tools StripBrackets