Codeunit 7002 Price Calculation - V16

Base Application, Microsoft.Pricing.Calculation

src/Layers/W1/BaseApp/Pricing/Calculation/PriceCalculationV16.Codeunit.al28 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 16, trigger

  1. 21writesTable 7006 Price Calculation Setup DeleteAll
  2. 22callsAddSupportedSetup
  3. 23writesTable 7006 Price Calculation Setup ModifyAll

ApplyDiscount line 44

  1. 51callsCheckSpecificReadPermissionAccess
  2. 57callsFindLines
  3. 58callsCalcBestAmount
  4. 60raisesOnApplyDiscountOnBeforeFillBestLine
  5. 61callsCodeunit 7008 Price Calculation Buffer Mgt. FillBestLine

ApplyPrice line 66

  1. 74callsCheckSpecificReadPermissionAccess
  2. 78callsFindLines
  3. 80callsCalcBestAmount
  4. 82callsCodeunit 7008 Price Calculation Buffer Mgt. FillBestLine

CountDiscount line 88

  1. 93callsFindPriceLines

CountPrice line 97

  1. 102callsFindPriceLines

FindPriceLines line 106, local

  1. 111callsFindLines

FindDiscount line 114

  1. 118callsFindPriceLines

FindPrice line 121

  1. 125callsFindPriceLines

CheckSpecificReadPermissionAccess line 128, local

  1. 140callsGetAppName
  2. 143callsGetAppName
  3. 149callsGetAppName
  4. 152callsGetAppName

IsDiscountExists line 157

  1. 161callsFindDiscount

IsPriceExists line 164

  1. 168callsFindPrice

PickDiscount line 171

  1. 175callsPick

PickPrice line 178

  1. 182callsPick

Pick line 185, local

  1. 192callsCheckSpecificReadPermissionAccess
  2. 196callsFindLines
  3. 197callsCodeunit 7008 Price Calculation Buffer Mgt. GetAssets
  4. 198callsPage 7010 Get Price Line SetDataCaptionExpr
  5. 199callsPage 7010 Get Price Line SetForLookup
  6. 202callsCodeunit 7008 Price Calculation Buffer Mgt. IsInMinQty
  7. 204callsCodeunit 7008 Price Calculation Buffer Mgt. VerifySelectedLine
  8. 205callsCodeunit 7008 Price Calculation Buffer Mgt. ConvertAmount

ShowPrices line 213

  1. 218raisesOnBeforeShowPrices
  2. 221callsPage 7010 Get Price Line SetForLookup

AddSupportedSetup line 226, local

  1. 229validatesTable 7006 Price Calculation Setup Implementation
  2. 231callsIsDisabled
  3. 234writesTable 7006 Price Calculation Setup Insert(true)
  4. 236writesTable 7006 Price Calculation Setup Insert(true)

IsDisabled line 239, local

  1. 241raisesOnIsDisabled

PickBestLine line 244, local

  1. 251raisesOnBeforePickBestLineIsHandled
  2. 257callsIsImprovedLine
  3. 257callsIsDegradedLine
  4. 259callsIsImprovedLine
  5. 259callsIsDegradedLine
  6. 266callsIsBetterLine
  7. 271raisesOnAfterPickBestLine

IsDegradedLine line 274

  1. 277callsIsBlankedValue
  2. 278callsIsBlankedValue
  3. 280raisesOnAfterIsDegradedLine

IsImprovedLine line 288

  1. 291callsIsSetValue
  2. 292callsIsSetValue
  3. 294raisesOnAfterIsImprovedLine

IsBetterLine line 302

  1. 308callsTable 7001 Price List Line IsRealLine
  2. 312callsIsBetterPrice
  3. 314callsIsBetterPrice
  4. 316raisesOnAfterIsBetterLine

IsBetterPrice line 319, local

  1. 322callsTable 7001 Price List Line IsRealLine

FindLines line 327

  1. 342raisesOnBeforeFindLinesIsHandled
  2. 351writesTable 7001 Price List Line DeleteAll
  3. 353callsCodeunit 7008 Price Calculation Buffer Mgt. SetFiltersOnPriceListLine
  4. 354callsCodeunit 7008 Price Calculation Buffer Mgt. GetAssets
  5. 355callsCodeunit 7008 Price Calculation Buffer Mgt. GetSources
  6. 356raisesOnFindLinesOnBefoerPriceSourceListGetMinMaxLevel
  7. 357callsCodeunit 7011 Price Source List GetMinMaxLevel
  8. 360callsCodeunit 7011 Price Source List First
  9. 362callsTable 7005 Price Source IsForAmountType
  10. 364callsCopyLinesBySource
  11. 365callsCodeunit 7008 Price Calculation Buffer Mgt. RestoreFilters
  12. 367callsCodeunit 7011 Price Source List Next
  13. 371callsCodeunit 7008 Price Calculation Buffer Mgt. FillBestLine
  14. 373raisesOnAfterFindLines

CopyLinesBySource line 376

  1. 386callsCodeunit 7007 Price Asset List GetMinMaxLevel
  2. 389callsCodeunit 7007 Price Asset List First
  3. 393callsCodeunit 7007 Price Asset List Next

CopyLinesBySource line 396

  1. 406callsTable 7005 Price Source FilterPriceLines
  2. 407callsTable 7003 Price Asset FilterPriceLines
  3. 408callsTable 7001 Price List Line CopyFilteredLinesToTemporaryBuffer

CalcBestAmount line 414

  1. 418raisesOnBeforeCalcBestAmount
  2. 422callsCodeunit 7008 Price Calculation Buffer Mgt. IsInMinQty
  3. 423callsCodeunit 7008 Price Calculation Buffer Mgt. ConvertAmount
  4. 424callsPickBestLine
  5. 430raisesOnAfterCalcBestAmount

OnFindImplementationHandler line 442, local

  1. 444callsAddSupportedSetup

OnCompanyInitializeHandler line 448, local

  1. 454callsAddSupportedSetup
  2. 463runsCodeunit 7001 Price Calculation Mgt.