Codeunit 132210 Library - Templates

Application Test Library

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

DisableTemplatesFeature line 23

  1. 27callsCodeunit 132210 Library - Templates SetTemplatesFeatureEnabled

EnableTemplatesFeature line 30

  1. 34callsCodeunit 132210 Library - Templates SetTemplatesFeatureEnabled

CreateVendorTemplate line 37

  1. 40validatesTable 1383 Vendor Templ. Code
  2. 40callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 41validatesTable 1383 Vendor Templ. Description
  4. 42writesTable 1383 Vendor Templ. Insert(true)

CreateVendorTemplateWithData line 45

  1. 52callsCreateVendorTemplate
  2. 54callsCodeunit 130512 Library - Purchase CreateVendorPostingGroup
  3. 55callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  4. 56callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  5. 57callsCodeunit 131300 Library - ERM FindPaymentMethod
  6. 59validatesTable 1383 Vendor Templ. Vendor Posting Group
  7. 60validatesTable 1383 Vendor Templ. Gen. Bus. Posting Group
  8. 61validatesTable 1383 Vendor Templ. VAT Bus. Posting Group
  9. 62validatesTable 1383 Vendor Templ. Payment Method Code
  10. 63validatesTable 1383 Vendor Templ. Payment Terms Code
  11. 63callsCodeunit 131300 Library - ERM FindPaymentTermsCode
  12. 64writesTable 1383 Vendor Templ. Modify(true)

CreateVendorTemplateWithDataAndDimensions line 67

  1. 69callsCreateVendorTemplateWithData
  2. 70callsCreateTemplateGlobalDimensions
  3. 71callsCreateTemplateDimensions

CreateCustomerTemplate line 74

  1. 77validatesTable 1381 Customer Templ. Code
  2. 77callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 78validatesTable 1381 Customer Templ. Description
  4. 79writesTable 1381 Customer Templ. Insert(true)

CreateCustomerTemplateWithData line 82

  1. 89callsCreateCustomerTemplate
  2. 91callsCodeunit 130509 Library - Sales CreateCustomerPostingGroup
  3. 92callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  4. 93callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  5. 94callsCodeunit 131300 Library - ERM FindPaymentMethod
  6. 96validatesTable 1381 Customer Templ. Customer Posting Group
  7. 97validatesTable 1381 Customer Templ. Gen. Bus. Posting Group
  8. 98validatesTable 1381 Customer Templ. VAT Bus. Posting Group
  9. 99validatesTable 1381 Customer Templ. Payment Method Code
  10. 100validatesTable 1381 Customer Templ. Payment Terms Code
  11. 100callsCodeunit 131300 Library - ERM FindPaymentTermsCode
  12. 101writesTable 1381 Customer Templ. Modify(true)

CreateCustomerTemplateWithDataAndDimensions line 104

  1. 106callsCreateCustomerTemplateWithData
  2. 107callsCreateTemplateGlobalDimensions
  3. 108callsCreateTemplateDimensions

CreateItemTemplate line 111

  1. 114validatesTable 1382 Item Templ. Code
  2. 114callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 115validatesTable 1382 Item Templ. Description
  4. 116writesTable 1382 Item Templ. Insert(true)

CreateItemTemplateWithData line 119

  1. 126callsCreateItemTemplate
  2. 129callsCodeunit 132201 Library - Inventory CreateInventoryPostingGroup
  3. 130callsCodeunit 131300 Library - ERM FindGeneralPostingSetupInvtFull
  4. 131callsCodeunit 131300 Library - ERM FindVATPostingSetupInvt
  5. 132callsCodeunit 132201 Library - Inventory CreateUnitOfMeasureCode
  6. 134validatesTable 1382 Item Templ. Inventory Posting Group
  7. 135validatesTable 1382 Item Templ. Gen. Prod. Posting Group
  8. 136validatesTable 1382 Item Templ. VAT Prod. Posting Group
  9. 137validatesTable 1382 Item Templ. Base Unit of Measure
  10. 138writesTable 1382 Item Templ. Modify(true)

CreateItemTemplateWithDataAndDimensions line 141

  1. 143callsCreateItemTemplateWithData
  2. 144callsCreateTemplateGlobalDimensions
  3. 145callsCreateTemplateDimensions

CreateEmployeeTemplate line 148

  1. 151validatesTable 1384 Employee Templ. Code
  2. 151callsCodeunit 131000 Library - Utility GenerateRandomCode
  3. 152validatesTable 1384 Employee Templ. Description
  4. 153writesTable 1384 Employee Templ. Insert(true)

CreateEmployeeTemplateWithData line 156

  1. 161callsCreateEmployeeTemplate
  2. 164validatesTable 5221 Employee Posting Group Code
  3. 164callsCodeunit 131000 Library - Utility GenerateRandomCode
  4. 165writesTable 5221 Employee Posting Group Insert
  5. 168validatesTable 5212 Employee Statistics Group Code
  6. 168callsCodeunit 131000 Library - Utility GenerateRandomCode
  7. 169writesTable 5212 Employee Statistics Group Insert
  8. 171validatesTable 1384 Employee Templ. Employee Posting Group
  9. 172validatesTable 1384 Employee Templ. Statistics Group Code
  10. 173writesTable 1384 Employee Templ. Modify(true)

CreateEmployeeTemplateWithDataAndDimensions line 176

  1. 178callsCreateEmployeeTemplateWithData
  2. 179callsCreateTemplateGlobalDimensions
  3. 180callsCreateTemplateDimensions

CreateTemplateGlobalDimensions line 183

  1. 190callsCodeunit 131001 Library - Dimension GetGlobalDimCodeValue
  2. 191callsCodeunit 131001 Library - Dimension CreateDefaultDimension

CreateTemplateDimensions line 195

  1. 201callsCodeunit 130440 Library - Random RandIntInRange
  2. 202callsCodeunit 131001 Library - Dimension CreateDimWithDimValue
  3. 203callsCodeunit 131001 Library - Dimension CreateDefaultDimension

UpdateTemplatesVATGroups line 212

  1. 219callsCodeunit 131300 Library - ERM FindVATPostingSetup
  2. 222writesTable 1381 Customer Templ. ModifyAll
  3. 224writesTable 1383 Vendor Templ. ModifyAll
  4. 226writesTable 1382 Item Templ. ModifyAll