Codeunit 2679 Purchase Alloc. Acc. Mgt.

Base Application, Microsoft.Finance.AllocationAccount.Purchase

src/Layers/W1/BaseApp/Finance/AllocationAccount/Purchase/PurchaseAllocAccMgt.Codeunit.al25 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

GetOrGenerateAllocationLines line 30, internal

  1. 41callsTable 39 Purchase Line GetPurchHeader
  2. 44callsLoadManualAllocationLines
  3. 46callsGetAllocationAccount
  4. 47callsCodeunit 2675 Allocation Account Mgt. GenerateAllocationLines
  5. 48callsCodeunit 2675 Allocation Account Mgt. SplitQuantitiesIfNeeded
  6. 49callsReplaceInheritFromParent

LoadManualAllocationLines line 53, internal

  1. 73raisesOnLoadManualAllocationLinesOnBeforeInsertAllocationLine
  2. 74writesTable 2672 Allocation Line Insert

ReplaceInheritFromParent line 78, local

  1. 94writesTable 2672 Allocation Line ModifyAll
  2. 98writesTable 2672 Allocation Line ModifyAll

HandlePostDocument line 109, local

  1. 114callsVerifyLinesFromDocument
  2. 118callsCodeunit 2676 Alloc. Acc. Telemetry LogPurchaseInvoicePostingUsage
  3. 119callsCreateLinesFromDocument

HandleAfterCheckSalesApprovalPossible line 137, local

  1. 141callsVerifyLinesFromDocument
  2. 151callsCreateLinesFromDocument

CheckBeforeModifyLine line 157, local

  1. 159callsVerifyPurchaseLine
  2. 160callsDeleteManualDistributionsIfLineChanged

HandleValidateLineNo line 164, local

  1. 176callsVerifyPurchaseLine

DeleteManualDistributionsIfLineChanged line 184, local

  1. 193callsAllocationAccountUsed
  2. 217writesTable 2673 Alloc. Acc. Manual Override DeleteAll

CreateLinesFromDocument line 225, local

  1. 230callsCheckPurchaseReleaseStatus
  2. 235callsCreateLines
  3. 236writesTable 39 Purchase Line DeleteAll
  4. 242callsCreateLines
  5. 243writesTable 39 Purchase Line DeleteAll
  6. 245callsCheckPurchaseReleaseStatus

CreateLines line 248, local

  1. 257callsCreateLinesFromAllocationAccountLine

CreateLinesFromAllocationAccountLine line 266

  1. 277callsGetAllocationAccount
  2. 280callsVerifyAllocationAccount
  3. 282callsGetOrGenerateAllocationLines
  4. 290callsGetNextLine
  5. 293callsGetLineIncrement
  6. 296callsGetLastLine
  7. 308callsGetDescriptionChanged
  8. 311callsCreatePurchaseLine
  9. 314callsFixQuantityRounding
  10. 315callsDeleteManualOverrides

DeleteManualOverrides line 318, local

  1. 326writesTable 2673 Alloc. Acc. Manual Override DeleteAll

VerifyLinesFromDocument line 329, local

  1. 340callsVerifyPurchaseLines
  2. 352callsVerifyPurchaseLines

CreatePurchaseLine line 357, local

  1. 366callsCodeunit 2674 Alloc. Acc. Handle Doc. Post SetVATBusPostingGroupCode
  2. 369callsCodeunit 2674 Alloc. Acc. Handle Doc. Post SetVATProdPostingGroupCode
  3. 372validatesTable 39 Purchase Line No.
  4. 374validatesTable 39 Purchase Line Tax Group Code
  5. 384callsMoveAmounts
  6. 385callsMoveQuantities
  7. 389callsCopyDeferralSchedule
  8. 390callsTransferDimensionSetID
  9. 394raisesOnBeforeCreatePurchaseLine
  10. 396writesTable 39 Purchase Line Insert(true)
  11. 399callsRedistributeQuantitiesIfNeededMoveQuantities

CopyDeferralSchedule line 403, local

  1. 421callsCodeunit 1720 Deferral Utilities CreateCopyOfDeferralSchedule

RedistributeQuantitiesIfNeededMoveQuantities line 439, local

  1. 449callsTable 2672 Allocation Line GetQuantityPrecision
  2. 452callsTable 39 Purchase Line IsInvoiceDocType
  3. 453validatesTable 39 Purchase Line Quantity
  4. 453callsTable 2672 Allocation Line GetQuantityPrecision
  5. 455validatesTable 39 Purchase Line Quantity
  6. 456callsTable 2672 Allocation Line GetQuantityPrecision
  7. 457callsTable 2672 Allocation Line GetQuantityPrecision
  8. 458callsTable 2672 Allocation Line GetQuantityPrecision
  9. 459callsTable 2672 Allocation Line GetQuantityPrecision
  10. 460callsTable 2672 Allocation Line GetQuantityPrecision
  11. 461callsTable 2672 Allocation Line GetQuantityPrecision
  12. 462callsTable 2672 Allocation Line GetQuantityPrecision
  13. 463callsTable 2672 Allocation Line GetQuantityPrecision
  14. 464callsTable 2672 Allocation Line GetQuantityPrecision
  15. 465callsTable 2672 Allocation Line GetQuantityPrecision
  16. 466writesTable 39 Purchase Line Modify

FixQuantityRounding line 469, local

  1. 544writesTable 39 Purchase Line Modify

MoveAmounts line 547, local

  1. 556validatesTable 39 Purchase Line Direct Unit Cost
  2. 556callsGetUnitPrice
  3. 557callsGetAmount
  4. 560callsCodeunit 2675 Allocation Account Mgt. GetCurrencyRoundingPrecision
  5. 561validatesTable 39 Purchase Line Direct Unit Cost
  6. 567validatesTable 39 Purchase Line Direct Unit Cost

GetAmount line 572, local

  1. 578callsTable 39 Purchase Line GetPurchHeader
  2. 581callsCodeunit 2675 Allocation Account Mgt. GetCurrencyRoundingPrecision

GetUnitPrice line 588, local

  1. 593callsTable 39 Purchase Line GetPurchHeader
  2. 595callsCodeunit 2675 Allocation Account Mgt. GetCurrencyRoundingPrecision

TransferDimensionSetID line 679

  1. 692callsCodeunit 408 DimensionManagement UpdateGlobalDimFromDimSetID
  2. 701callsCodeunit 408 DimensionManagement GetCombinedDimensionSetID

VerifyPurchaseLines line 705, local

  1. 712callsVerifyPurchaseLine

VerifySelectedAllocationAccountNo line 721

  1. 736callsVerifyAllocationAccount

VerifyPurchaseLine line 767, local

  1. 772callsAllocationAccountUsed
  2. 775raisesOnBeforeVerifyPurchaseLine
  3. 777callsVerifySelectedAllocationAccountNo
  4. 783callsVerifyAllocationAccount
  5. 784callsCodeunit 2675 Allocation Account Mgt. VerifyNoInheritFromParentUsed

CheckPurchaseReleaseStatus line 788, local

  1. 793runsCodeunit 415 Release Purchase Document
  2. 794writesTable 38 Purchase Header Modify
  3. 801callsCodeunit 415 Release Purchase Document Reopen
  4. 803callsCodeunit 415 Release Purchase Document SetSkipCheckReleaseRestrictions
  5. 804callsTable 38 Purchase Header SetHideValidationDialog