Codeunit 7021 Purchase Line - Price

Base Application, Microsoft.Purchases.Pricing

src/Layers/W1/BaseApp/Purchases/Pricing/PurchaseLinePrice.Codeunit.al18 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

SetLine line 33

  1. 40callsAddSources

SetSources line 50

  1. 52callsCodeunit 7011 Price Source List Copy

SetPurchaseQtyInvoice line 55

  1. 60validatesTable 39 Purchase Line Qty. to Invoice
  2. 60callsTable 39 Purchase Line MaxQtyToInvoice
  3. 61writesTable 39 Purchase Line Modify(true)

SetPurchaseReceiveQty line 64

  1. 69validatesTable 39 Purchase Line Qty. to Receive
  2. 70writesTable 39 Purchase Line Modify(true)

IsPriceUpdateNeeded line 89

  1. 102raisesOnAfterIsPriceUpdateNeeded

IsDiscountAllowed line 105

  1. 108raisesOnAfterIsDiscountAllowed

Verify line 111

  1. 116raisesOnBeforeVerifyIsHandled
  2. 120callsTable 39 Purchase Line IsProdOrder

SetAssetSourceForSetup line 127

  1. 132callsGetAssetType
  2. 134callsCodeunit 7011 Price Source List GetSourceGroup

SetAssetSource line 137, local

  1. 140callsGetAssetType

GetAssetType line 145

  1. 157raisesOnAfterGetAssetType

CopyToBuffer line 160

  1. 164raisesOnBeforeCopyToBuffer
  2. 167callsSetAssetSource
  3. 170callsFillBuffer
  4. 171callsCodeunit 7008 Price Calculation Buffer Mgt. Set

FillBuffer line 175, local

  1. 183callsTable 39 Purchase Line GetVATPct
  2. 211callsGetDocumentDate
  3. 214validatesTable 7007 Price Calculation Buffer Currency Code
  4. 223callsIsDiscountAllowed
  5. 225raisesOnAfterFillBuffer

AddSources line 228, local

  1. 230callsCodeunit 7011 Price Source List Init
  2. 231callsAddVendorSources
  3. 232callsCodeunit 7011 Price Source List AddJobAsSources
  4. 233raisesOnAfterAddSources

AddVendorSources line 236, local

  1. 238callsCodeunit 7011 Price Source List Add
  2. 239callsCodeunit 7011 Price Source List Add
  3. 240callsCodeunit 7011 Price Source List Add
  4. 241callsCodeunit 7011 Price Source List Add

GetDocumentDate line 244, local

  1. 246callsTable 39 Purchase Line GetDateForCalculations
  2. 247raisesOnAfterGetDocumentDate

SetPrice line 250

  1. 255raisesOnBeforeSetPriceIsHandled
  2. 266callsTable 7001 Price List Line IsRealLine
  3. 275raisesOnAfterSetPrice

ValidatePrice line 278

  1. 281validatesTable 39 Purchase Line Line Discount %
  2. 283validatesTable 39 Purchase Line Direct Unit Cost
  3. 285raisesOnAfterValidatePrice

Update line 288

  1. 293raisesOnAfterUpdate