Codeunit 130510 Library - Price Calculation

Application Test Library

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryPriceCalculation.Codeunit.al27 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

AddSetup line 20

  1. 29writesTable 7006 Price Calculation Setup Insert(true)

FindOrAddSetup line 33

  1. 41callsAddSetup

AddDtldSetup line 47

  1. 56validatesTable 7008 Dtld. Price Calculation Setup Source Group
  2. 59writesTable 7008 Dtld. Price Calculation Setup Insert(true)

AddDtldSetup line 62

  1. 68validatesTable 7008 Dtld. Price Calculation Setup Setup Code
  2. 70validatesTable 7008 Dtld. Price Calculation Setup Source Group
  3. 73writesTable 7008 Dtld. Price Calculation Setup Insert(true)

DisableSetup line 76

  1. 79writesTable 7006 Price Calculation Setup Modify

DisableDtldSetup line 82

  1. 85writesTable 7008 Dtld. Price Calculation Setup Modify

SetupDefaultHandler line 109

  1. 123writesTable 7006 Price Calculation Setup DeleteAll
  2. 124runsCodeunit 7001 Price Calculation Mgt.
  3. 125writesTable 7006 Price Calculation Setup Modifyall
  4. 128writesTable 7006 Price Calculation Setup Modifyall

AllowEditingActiveSalesPrice line 138, local

  1. 144writesTable 311 Sales & Receivables Setup Modify

AllowEditingActivePurchPrice line 152, local

  1. 158writesTable 312 Purchases & Payables Setup Modify

DisallowEditingActiveSalesPrice line 161

  1. 163callsAllowEditingActiveSalesPrice

DisallowEditingActivePurchPrice line 166

  1. 168callsAllowEditingActivePurchPrice

CreateDefaultPriceList line 171, local

  1. 175validatesTable 7000 Price List Header Price Type
  2. 176validatesTable 7000 Price List Header Source Group
  3. 180validatesTable 7000 Price List Header Source Type
  4. 182validatesTable 7000 Price List Header Source Type
  5. 184validatesTable 7000 Price List Header Source Type
  6. 188writesTable 7000 Price List Header Insert(true)

SetDefaultPriceList line 192

  1. 196callsDefineSalesDefaultPriceList
  2. 198callsDefinePurchDefaultPriceList
  3. 200callsDefineJobDefaultPriceList

DefineJobDefaultPriceList line 204, local

  1. 209callsCreateDefaultPriceList
  2. 216writesTable 315 Jobs Setup Modify

DefinePurchDefaultPriceList line 219, local

  1. 224callsCreateDefaultPriceList
  2. 227writesTable 312 Purchases & Payables Setup Modify

DefineSalesDefaultPriceList line 230, local

  1. 235callsCreateDefaultPriceList
  2. 238writesTable 311 Sales & Receivables Setup Modify

ClearDefaultPriceList line 242

  1. 258writesTable 315 Jobs Setup Modify
  2. 264writesTable 312 Purchases & Payables Setup Modify
  3. 270writesTable 311 Sales & Receivables Setup Modify

SetUseCustomLookup line 275

  1. 284writesTable 311 Sales & Receivables Setup Modify

SetMethodInSalesSetup line 287

  1. 293writesTable 311 Sales & Receivables Setup Modify

SetMethodInPurchSetup line 296

  1. 302writesTable 312 Purchases & Payables Setup Modify

CreatePriceHeader line 305

  1. 308callsCodeunit 131000 Library - Utility GenerateGUID
  2. 311validatesTable 7000 Price List Header Source Type
  3. 312validatesTable 7000 Price List Header Source No.
  4. 313writesTable 7000 Price List Header Insert(true)

CreatePriceHeader line 316

  1. 319callsCodeunit 131000 Library - Utility GenerateGUID
  2. 322validatesTable 7000 Price List Header Source Type
  3. 323validatesTable 7000 Price List Header Parent Source No.
  4. 324validatesTable 7000 Price List Header Source No.
  5. 325writesTable 7000 Price List Header Insert(true)

CreatePriceListLine line 344

  1. 350validatesTable 7001 Price List Line Source Type
  2. 351validatesTable 7001 Price List Line Parent Source No.
  3. 352validatesTable 7001 Price List Line Source No.
  4. 353validatesTable 7001 Price List Line Asset Type
  5. 354validatesTable 7001 Price List Line Asset No.
  6. 355validatesTable 7001 Price List Line Amount Type
  7. 357validatesTable 7001 Price List Line Line Discount %
  8. 357callsCodeunit 130440 Library - Random RandDec
  9. 361validatesTable 7001 Price List Line Unit Price
  10. 361callsCodeunit 130440 Library - Random RandDec
  11. 363validatesTable 7001 Price List Line Direct Unit Cost
  12. 363callsCodeunit 130440 Library - Random RandDec
  13. 365writesTable 7001 Price List Line Insert(true)

CreatePurchDiscountLine line 368

  1. 372callsCreatePriceListLine

CreatePurchPriceLine line 377

  1. 381callsCreatePriceListLine

CreateSalesDiscountLine line 386

  1. 390callsCreatePriceListLine

CreateSalesPriceLine line 395

  1. 399callsCreatePriceListLine