Codeunit 2678 Sales Alloc. Acc. Mgt.

Base Application, Microsoft.Finance.AllocationAccount.Sales

src/Layers/W1/BaseApp/Finance/AllocationAccount/Sales/SalesAllocAccMgt.Codeunit.al24 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

GetOrGenerateAllocationLines line 29, internal

  1. 40callsTable 37 Sales Line GetSalesHeader
  2. 43callsLoadManualAllocationLines
  3. 45callsGetAllocationAccount
  4. 46callsCodeunit 2675 Allocation Account Mgt. GenerateAllocationLines
  5. 47callsCodeunit 2675 Allocation Account Mgt. SplitQuantitiesIfNeeded
  6. 48callsReplaceInheritFromParent

LoadManualAllocationLines line 52, internal

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

ReplaceInheritFromParent line 77, local

  1. 93writesTable 2672 Allocation Line ModifyAll
  2. 97writesTable 2672 Allocation Line ModifyAll

HandlePostDocument line 107, local

  1. 112callsVerifyLinesFromDocument
  2. 116callsCodeunit 2676 Alloc. Acc. Telemetry LogSalesInvoicePostingUsage
  3. 117callsCreateLinesFromDocument

HandleAfterCheckSalesApprovalPossible line 135, local

  1. 139callsVerifyLinesFromDocument
  2. 149callsCreateLinesFromDocument

CheckBeforeModifyLine line 155, local

  1. 157callsVerifySalesLine
  2. 158callsDeleteManualDistributionsIfLineChanged

HandleValidateLineNo line 162, local

  1. 174callsVerifySalesLine

DeleteManualDistributionsIfLineChanged line 182, local

  1. 191callsAllocationAccountUsed
  2. 215writesTable 2673 Alloc. Acc. Manual Override DeleteAll

CreateLinesFromDocument line 223, local

  1. 230callsCreateLines
  2. 231writesTable 37 Sales Line DeleteAll
  3. 237callsCreateLines
  4. 238writesTable 37 Sales Line DeleteAll

CreateLines line 241, local

  1. 251callsCreateLinesFromAllocationAccountLine

CreateLinesFromAllocationAccountLine line 260

  1. 271callsGetAllocationAccount
  2. 274callsVerifyAllocationAccount
  3. 276callsGetOrGenerateAllocationLines
  4. 284callsGetNextLine
  5. 287callsGetLineIncrement
  6. 290callsGetLastLine
  7. 302callsGetDescriptionChanged
  8. 305callsCreateSalesLine
  9. 308callsFixQuantityRounding
  10. 309callsDeleteManualOverrides

DeleteManualOverrides line 312, local

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

VerifyLinesFromDocument line 323, local

  1. 334callsVerifySalesLines
  2. 346callsVerifySalesLines

CreateSalesLine line 351, local

  1. 360callsCodeunit 2674 Alloc. Acc. Handle Doc. Post SetVATBusPostingGroupCode
  2. 363callsCodeunit 2674 Alloc. Acc. Handle Doc. Post SetVATProdPostingGroupCode
  3. 366validatesTable 37 Sales Line No.
  4. 376callsMoveAmounts
  5. 377callsMoveQuantities
  6. 380callsCopyDeferralSchedule
  7. 381callsTransferDimensionSetID
  8. 385raisesOnBeforeCreateSalesLine
  9. 387writesTable 37 Sales Line Insert(true)
  10. 390callsRedistributeQuantitiesIfNeededMoveQuantities

CopyDeferralSchedule line 394, local

  1. 412callsCodeunit 1720 Deferral Utilities CreateCopyOfDeferralSchedule

RedistributeQuantitiesIfNeededMoveQuantities line 430, local

  1. 440callsTable 2672 Allocation Line GetQuantityPrecision
  2. 443validatesTable 37 Sales Line Quantity
  3. 444callsTable 2672 Allocation Line GetQuantityPrecision
  4. 445callsTable 2672 Allocation Line GetQuantityPrecision
  5. 446callsTable 2672 Allocation Line GetQuantityPrecision
  6. 447callsTable 2672 Allocation Line GetQuantityPrecision
  7. 448callsTable 2672 Allocation Line GetQuantityPrecision
  8. 449callsTable 2672 Allocation Line GetQuantityPrecision
  9. 450callsTable 2672 Allocation Line GetQuantityPrecision
  10. 451callsTable 2672 Allocation Line GetQuantityPrecision
  11. 452callsTable 2672 Allocation Line GetQuantityPrecision
  12. 453callsTable 2672 Allocation Line GetQuantityPrecision
  13. 454writesTable 37 Sales Line Modify

FixQuantityRounding line 457, local

  1. 532writesTable 37 Sales Line Modify

MoveAmounts line 535, local

  1. 540validatesTable 37 Sales Line Unit Price
  2. 540callsGetUnitPrice
  3. 541callsGetAmount
  4. 544validatesTable 37 Sales Line Unit Price

GetUnitPrice line 549, local

  1. 554callsTable 37 Sales Line GetSalesHeader
  2. 557callsCodeunit 2675 Allocation Account Mgt. GetCurrencyUnitAmountPrecision

GetAmount line 561, local

  1. 567callsTable 37 Sales Line GetSalesHeader
  2. 570callsCodeunit 2675 Allocation Account Mgt. GetCurrencyRoundingPrecision

TransferDimensionSetID line 647, local

  1. 660callsCodeunit 408 DimensionManagement UpdateGlobalDimFromDimSetID
  2. 669callsCodeunit 408 DimensionManagement GetCombinedDimensionSetID

VerifySalesLines line 673, local

  1. 680callsVerifySalesLine

VerifySelectedAllocationAccountNo line 689

  1. 700callsVerifyAllocationAccount

VerifySalesLine line 731, local

  1. 736callsAllocationAccountUsed
  2. 739raisesOnBeforeVerifySalesLine
  3. 741callsVerifySelectedAllocationAccountNo
  4. 747callsVerifyAllocationAccount
  5. 748callsCodeunit 2675 Allocation Account Mgt. VerifyNoInheritFromParentUsed