Codeunit 5701 Item Subst.

Base Application, Microsoft.Inventory.Item.Substitution

src/Layers/W1/BaseApp/Inventory/Item/Substitution/ItemSubst.Codeunit.al9 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

ItemSubstGet line 51

  1. 73callsSaveItemSalesUOM
  2. 80raisesOnItemSubstGetOnAfterItemSubstitutionSetFilters
  3. 82callsCalcCustPrice
  4. 88raisesOnItemSubstGetOnAfterTempItemSubstitutionSetFiltersIsHandled
  5. 90runsPage 5718 Item Substitution Entries
  6. 94callsCodeunit 5703 Catalog Item Management CreateItemFromNonstock
  7. 99callsItemSubstGetPopulateTempSalesLine
  8. 102callsCodeunit 311 Item-Check Avail. SalesLineCheck
  9. 110callsCodeunit 99000832 Sales Line-Reserve DeleteLine
  10. 113raisesOnAfterItemSubstGet

ItemSubstGetPopulateTempSalesLine line 116, local

  1. 121raisesOnBeforeItemSubstGetPopulateTempSalesLineIsHandled
  2. 131validatesTable 37 Sales Line No.
  3. 132validatesTable 37 Sales Line Variant Code
  4. 137validatesTable 37 Sales Line Quantity
  5. 138validatesTable 37 Sales Line Unit of Measure Code
  6. 140callsTable 37 Sales Line CreateDimFromDefaultDim
  7. 142raisesOnItemSubstGetOnAfterSubstSalesLineItem

CalcCustPrice line 145

  1. 150raisesOnBeforeCalcCustPriceIsHandled
  2. 155writesTable 5715 Item Substitution DeleteAll
  3. 171callsGetSetupData
  4. 172raisesOnCalcCustPriceOnBeforeCalcQtyAvail
  5. 174callsCodeunit 5790 Available to Promise CalcQtyAvailabletoPromise
  6. 179raisesOnCalcCustPriceOnAfterCalcQtyAvail
  7. 186raisesOnCalcCustPriceOnBeforeTempItemSubstitutionInsert
  8. 187writesTable 5715 Item Substitution Insert

AssemblyCalcCustPrice line 191, local

  1. 196writesTable 5715 Item Substitution DeleteAll
  2. 212callsGetSetupData
  3. 213raisesOnAssemblyCalcCustPriceOnBeforeCalcQtyAvail
  4. 215callsCodeunit 5790 Available to Promise CalcQtyAvailabletoPromise
  5. 220raisesOnAssemblyCalcCustPriceOnAfterCalcQtyAvail
  6. 227writesTable 5715 Item Substitution Insert

FindItemSubstitutions line 238

  1. 251writesTable 5715 Item Substitution DeleteAll
  2. 252callsCreateSubstList

CreateSubstList line 259, local

  1. 286raisesOnCreateSubstListOnBeforeCalcQuantityAvailable
  2. 288callsCodeunit 5790 Available to Promise CalcQtyAvailabletoPromise
  3. 292raisesOnCreateSubstListOnAfterCalcQuantityAvailable
  4. 296callsIsSubstitutionInserted
  5. 309writesTable 5715 Item Substitution Modify

ItemAssemblySubstGet line 323

  1. 342callsSaveItemSalesUOM
  2. 350callsAssemblyCalcCustPrice
  3. 356runsPage 5718 Item Substitution Entries
  4. 362validatesTable 901 Assembly Line No.
  5. 363validatesTable 901 Assembly Line Variant Code
  6. 365validatesTable 901 Assembly Line Quantity
  7. 366validatesTable 901 Assembly Line Unit of Measure Code
  8. 368callsCodeunit 311 Item-Check Avail. AssemblyLineCheck
  9. 375callsCodeunit 926 Assembly Line-Reserve DeleteLine

IsSubstitutionInserted line 380, local

  1. 388writesTable 5715 Item Substitution Insert

SaveItemSalesUOM line 393, local

  1. 398raisesOnBeforeSaveItemSalesUOMIsHandled