Codeunit 7010 Purch. Price Calc. Mgt.

Base Application, Microsoft.Purchases.Pricing

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

FindPurchLinePrice line 59

  1. 64raisesOnBeforeFindPurchLinePriceIsHandled
  2. 68callsSetCurrency
  3. 68callsPurchHeaderExchDate
  4. 69callsSetVAT
  5. 69callsTable 39 Purchase Line GetVATPct
  6. 70callsSetUoM
  7. 71callsSetLineDisc
  8. 85callsPurchLinePriceExists
  9. 86callsCalcBestDirectUnitCost
  10. 100raisesOnFindPurchLinePriceOnBeforeRunResourceFindCost
  11. 101runsCodeunit 220 Resource-Find Cost
  12. 102callsConvertPriceLCYToFCY
  13. 107raisesOnAfterFindPurchLinePrice

FindItemJnlLinePrice line 110

  1. 115raisesOnBeforeFindItemJnlLinePriceIsHandled
  2. 120callsSetCurrency
  3. 121callsSetVAT
  4. 122callsSetUoM
  5. 127callsFindPurchPrice
  6. 131raisesOnFindItemJnlLinePriceOnBeforeCalcBestDirectUnitCost
  7. 132callsCalcBestDirectUnitCost

FindReqLinePrice line 141

  1. 147raisesOnBeforeFindReqLinePriceOnBeforeWithIsHandled
  2. 163callsSetCurrency
  3. 164callsSetVAT
  4. 165callsSetUoM
  5. 175raisesOnBeforeFindReqLinePriceIsHandled
  6. 177callsFindPurchPrice
  7. 180callsCalcBestDirectUnitCost
  8. 189raisesOnAfterFindReqLinePrice

FindInvtDocLinePrice line 192

  1. 195callsSetCurrency
  2. 196callsSetVAT
  3. 197callsSetUoM
  4. 202callsFindPurchPrice
  5. 205callsCalcBestDirectUnitCost

FindPurchLineLineDisc line 214

  1. 219raisesOnBeforeFindPurchLineLineDiscIsHandled
  2. 223callsSetCurrency
  3. 224callsSetUoM
  4. 229callsPurchLineLineDiscExists
  5. 230callsCalcBestLineDisc
  6. 235raisesOnAfterFindPurchLineLineDisc

FindStdItemJnlLinePrice line 238

  1. 243raisesOnBeforeFindStdItemJnlLinePriceIsHandled
  2. 248callsSetCurrency
  3. 249callsSetVAT
  4. 250callsSetUoM
  5. 255callsFindPurchPrice
  6. 258callsCalcBestDirectUnitCost

FindReqLineDisc line 267

  1. 272raisesOnBeforeFindReqLineDiscOnBeforeWithIsHandled
  2. 276callsSetCurrency
  3. 277callsSetUoM
  4. 283raisesOnBeforeFindReqLineDiscIsHandled
  5. 285callsFindPurchLineDisc
  6. 289raisesOnAfterFindReqLineDisc
  7. 290callsCalcBestLineDisc

CalcBestDirectUnitCost line 296

  1. 304raisesOnBeforeCalcBestDirectUnitCostIsHandled
  2. 311callsIsInMinQty
  3. 312raisesOnCalcBestDirectUnitCostOnAfterIsInMinQty
  4. 314raisesOnCalcBestDirectUnitCostOnBeforeConvertPriceToVAT
  5. 315callsConvertPriceToVAT
  6. 318callsConvertPriceToUoM
  7. 319callsConvertPriceLCYToFCY
  8. 322raisesOnCalcBestDirectUnitCostOnBeforeCaseStatementIsHandled
  9. 334callsCalcLineAmount
  10. 334callsCalcLineAmount
  11. 343raisesOnAfterCalcBestDirectUnitCostFoundIsHandled
  12. 350raisesOnCalcBestDirectUnitCostOnBeforeNoPriceFoundIsHandled
  13. 358callsConvertPriceToVAT
  14. 359callsConvertPriceToUoM
  15. 360callsConvertPriceLCYToFCY
  16. 361raisesOnCalcBestDirectUnitCostOnAfterSetUnitCost

CalcBestLineDisc line 367

  1. 373raisesOnBeforeCalcBestLineDiscIsHandled
  2. 379callsIsInMinQty
  3. 391raisesOnAfterCalcBestLineDisc

FindPurchPrice line 395

  1. 399raisesOnBeforeFindPurchPrice
  2. 413writesTable 7012 Purchase Price DeleteAll
  3. 417writesTable 7012 Purchase Price Insert
  4. 420raisesOnAfterFindPurchPrice

FindPurchLineDisc line 424

  1. 428raisesOnBeforeFindPurchLineDsic
  2. 433raisesOnFindPurchLineDiscOnAfterSetFilters
  3. 441writesTable 7014 Purchase Line Discount DeleteAll
  4. 446writesTable 7014 Purchase Line Discount Insert
  5. 449raisesOnAfterFindPurchLineDisc

SetCurrency line 452

  1. 462raisesOnAfterSetCurrency

IsInMinQty line 483, local

  1. 488raisesOnBeforeIsInMinQtyIsHandled

ConvertPriceToVAT line 497, local

  1. 507raisesOnBeforeConvertPriceToVATIsHandled

ConvertPriceLCYToFCY line 527

  1. 534callsTable 330 Currency Exchange Rate ExchangeAmtLCYToFCY

CalcLineAmount line 540, local

  1. 545raisesOnBeforeCalcLineAmountIsHandled

PurchLinePriceExists line 553

  1. 559raisesOnBeforePurchLinePriceExistsIsHandled
  2. 561callsFindPurchPrice
  3. 563callsPurchHeaderStartDate
  4. 564raisesOnAfterPurchLinePriceExists

PurchLineLineDiscExists line 571

  1. 577raisesOnBeforePurchLineLineDiscExistsIsHandled
  2. 579callsFindPurchLineDisc
  3. 581callsPurchHeaderStartDate
  4. 583raisesOnAfterPurchLineLineDiscExists

PurchHeaderStartDate line 596, local

  1. 601raisesOnBeforePurchHeaderStartDateIsHandled

FindJobPlanningLinePrice line 614

  1. 620raisesOnBeforeFindJobPlanningLinePriceIsHandled
  2. 622callsSetCurrency
  3. 623callsSetVAT
  4. 624callsSetUoM
  5. 635callsFindPurchPrice
  6. 639callsCalcBestDirectUnitCost
  7. 640callsSetCurrency
  8. 653raisesOnFindJobPlanningLinePriceOnBeforeResourceFindCost
  9. 654runsCodeunit 220 Resource-Find Cost
  10. 655callsTable 1003 Job Planning Line AfterResourceFindCost
  11. 656raisesOnAfterJobPlanningLineFindResCost
  12. 657callsConvertPriceLCYToFCY
  13. 660validatesTable 1003 Job Planning Line Unit Cost (LCY)
  14. 664validatesTable 1003 Job Planning Line Direct Unit Cost (LCY)
  15. 666raisesOnAfterFindJobPlanningLinePrice

FindJobJnlLinePrice line 669

  1. 675raisesOnBeforeFindJobJnlLinePriceIsHandled
  2. 679callsSetCurrency
  3. 680callsSetVAT
  4. 681callsSetUoM
  5. 692callsFindPurchPrice
  6. 697raisesOnFindJobJnlLinePriceOnBeforeCalcBestDirectUnitCost
  7. 698callsCalcBestDirectUnitCost
  8. 699callsSetCurrency
  9. 706raisesOnAfterFindJobJnlLinePriceItem
  10. 713raisesOnFindJobJnlLinePriceOnBeforeResourceFindCost
  11. 714runsCodeunit 220 Resource-Find Cost
  12. 715callsTable 210 Job Journal Line AfterResourceFindCost
  13. 716raisesOnAfterJobJnlLineFindResCost
  14. 717callsConvertPriceLCYToFCY
  15. 720validatesTable 210 Job Journal Line Unit Cost (LCY)
  16. 722raisesOnAfterFindJobJnlLinePriceResource
  17. 725raisesOnAfterFindJobJnlLinePriceIsHandled
  18. 727validatesTable 210 Job Journal Line Direct Unit Cost (LCY)

NoOfPurchLinePrice line 730

  1. 735raisesOnBeforeNoOfPurchLinePriceIsHandled
  2. 739callsPurchLinePriceExists

NoOfPurchLineLineDisc line 743

  1. 748raisesOnBeforeNoOfPurchLineLineDiscIsHandled
  2. 752callsPurchLineLineDiscExists

GetPurchLinePrice line 756

  1. 761raisesOnBeforeGetPurchLinePriceIsHandled
  2. 765callsPurchLinePriceExists
  3. 767runsPage 7190 Get Purchase Price
  4. 768callsSetVAT
  5. 769callsSetUoM
  6. 770callsSetCurrency
  7. 770callsPurchHeaderExchDate
  8. 771raisesOnGetPurchLinePriceOnAfterLookup
  9. 773callsIsInMinQty
  10. 791callsPurchHeaderStartDate
  11. 798callsConvertPriceToVAT
  12. 801callsConvertPriceToUoM
  13. 802callsConvertPriceLCYToFCY
  14. 804validatesTable 39 Purchase Line Direct Unit Cost
  15. 807raisesOnAfterGetPurchLinePrice

GetPurchLineLineDisc line 810

  1. 815raisesOnBeforeGetPurchLineDiscIsHandled
  2. 819callsPurchLineLineDiscExists
  3. 821runsPage 7189 Get Purchase Line Disc.
  4. 822callsSetCurrency
  5. 823callsSetUoM
  6. 824raisesOnGetPurchLineLineDiscOnAfterLookup
  7. 826callsIsInMinQty
  8. 843callsPurchHeaderStartDate
  9. 850validatesTable 39 Purchase Line Line Discount %
  10. 853raisesOnAfterGetPurchLineLineDisc

FindResUnitCost line 866

  1. 872callsTable 207 Res. Journal Line AfterInitResourceCost
  2. 873runsCodeunit 220 Resource-Find Cost
  3. 874callsTable 207 Res. Journal Line AfterFindResUnitCost
  4. 879validatesTable 207 Res. Journal Line Unit Cost

FindResUnitCost line 882

  1. 885callsTable 37 Sales Line FindResUnitCostOnAfterInitResCost
  2. 888runsCodeunit 220 Resource-Find Cost
  3. 889callsTable 37 Sales Line AfterFindResUnitCost
  4. 890validatesTable 37 Sales Line Unit Cost (LCY)