Codeunit 7020 Sales Line - Price

Base Application, Microsoft.Sales.Pricing

src/Layers/W1/BaseApp/Sales/Pricing/SalesLinePrice.Codeunit.al20 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

SetLine line 43

  1. 48callsAddSources

SetSources line 68

  1. 70callsCodeunit 7011 Price Source List Copy

IsPriceUpdateNeeded line 109

  1. 118raisesOnAfterIsPriceUpdateNeeded

IsDiscountAllowed line 125

  1. 128raisesOnAfterIsDiscountAllowed

Verify line 134

  1. 139raisesOnBeforeVerifyIsHandled

SetAssetSourceForSetup line 153

  1. 158callsGetAssetType
  2. 160callsCodeunit 7011 Price Source List GetSourceGroup

SetAssetSource line 163, local

  1. 166callsGetAssetType

GetAssetType line 175

  1. 187raisesOnAfterGetAssetType

CopyToBuffer line 195

  1. 200callsSetAssetSource
  2. 203callsFillBuffer
  3. 204callsCodeunit 7008 Price Calculation Buffer Mgt. Set
  4. 205raisesOnCopyToBufferOnAfterPriceCalculationBufferMgtSet

FillBuffer line 209, local

  1. 218callsTable 37 Sales Line GetVATPct
  2. 243callsGetDocumentDate
  3. 246validatesTable 7007 Price Calculation Buffer Currency Code
  4. 259callsIsDiscountAllowed
  5. 261raisesOnAfterFillBuffer

AddSources line 264, local

  1. 266callsCodeunit 7011 Price Source List Init
  2. 269callsAddCustomerSources
  3. 271callsCodeunit 7011 Price Source List Add
  4. 274callsCodeunit 7011 Price Source List AddJobAsSources
  5. 275raisesOnAfterAddSources

AddCustomerSources line 278, local

  1. 280callsCodeunit 7011 Price Source List Add
  2. 281callsCodeunit 7011 Price Source List Add
  3. 282callsCodeunit 7011 Price Source List Add
  4. 283callsCodeunit 7011 Price Source List Add
  5. 284callsAddActivatedCampaignsAsSource
  6. 285callsCodeunit 7011 Price Source List Add
  7. 286callsCodeunit 7011 Price Source List Add

GetDocumentDate line 289, local

  1. 291callsTable 37 Sales Line GetDateForCalculations
  2. 292raisesOnAfterGetDocumentDate

SetPrice line 300

  1. 305raisesOnBeforeSetPriceIsHandled
  2. 315callsTable 7001 Price List Line IsRealLine
  3. 326raisesOnAfterSetPrice

ValidatePrice line 333

  1. 339validatesTable 37 Sales Line Line Discount %
  2. 344validatesTable 37 Sales Line Unit Price
  3. 346validatesTable 37 Sales Line Unit Cost (LCY)
  4. 350raisesOnAfterValidatePrice

Update line 357

  1. 362raisesOnAfterUpdate

AddActivatedCampaignsAsSource line 368

  1. 373callsFindActivatedCampaign
  2. 375callsCodeunit 7011 Price Source List Add

FindActivatedCampaign line 379, local

  1. 384writesTable 7030 Campaign Target Group DeleteAll
  2. 386callsCodeunit 7011 Price Source List GetValue
  3. 387callsFindCustomerCampaigns
  4. 387callsCodeunit 7011 Price Source List GetValue
  5. 388callsFindContactCompanyCampaigns
  6. 388callsCodeunit 7011 Price Source List GetValue

FindCustomerCampaigns line 393, local

  1. 399callsTable 7030 Campaign Target Group CopyTo
  2. 400raisesOnAfterFindCustomerCampaigns

FindContactCompanyCampaigns line 403, local

  1. 411callsTable 7030 Campaign Target Group CopyTo
  2. 412raisesOnAfterFindContactCompanyCampaigns