Codeunit 132213 Library - Small Business
src/Layers/W1/Tests/ApplicationTestLibrary/LibrarySmallBusiness.Codeunit.al53 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CreateCommentLine line 22
- 27validatesTable 97 Comment Line Table Name
- 28validatesTable 97 Comment Line No.
- 30validatesTable 97 Comment Line Line No.
- 30callsCodeunit 131000 Library - Utility GetNewLineNo
- 31writesTable 97 Comment Line Insert(true)
CreateSalesCommentLine line 34
- 53callsCodeunit 131000 Library - Utility GenerateRandomDate
- 54callsCodeunit 131000 Library - Utility GenerateRandomCode
- 55writesTable 44 Sales Comment Line Insert(true)
CreateCustomer line 58
- 60callsCodeunit 130509 Library - Sales CreateCustomer
CreateCustomerSalesCode line 63
- 66validatesTable 172 Standard Customer Sales Code Customer No.
- 67validatesTable 172 Standard Customer Sales Code Code
- 68writesTable 172 Standard Customer Sales Code Insert(true)
CreateCustomerTemplateLine line 71
- 75callsCodeunit 131903 Library - Rapid Start CreateConfigTemplateLine
- 76validatesTable 8619 Config. Template Line Field ID
- 77validatesTable 8619 Config. Template Line Field Name
- 79validatesTable 8619 Config. Template Line Default Value
- 81validatesTable 8619 Config. Template Line Default Value
- 81callsCodeunit 130440 Library - Random RandIntInRange
- 82validatesTable 8619 Config. Template Line Skip Relation Check
- 83writesTable 8619 Config. Template Line Modify(true)
CreateCustomerTemplate line 86
- 90callsCodeunit 131903 Library - Rapid Start CreateConfigTemplateHeader
- 91validatesTable 8618 Config. Template Header Table ID
- 92writesTable 8618 Config. Template Header Modify(true)
- 94callsCreateCustomerTemplateLine
- 96callsCreateCustomerTemplateLine
- 98callsCreateCustomerTemplateLine
- 99callsFindGenBusPostingGroup
- 100callsCreateCustomerTemplateLine
- 101callsCodeunit 130509 Library - Sales FindCustomerPostingGroup
CreateCurrencyExchangeRate line 104
- 107validatesTable 330 Currency Exchange Rate Currency Code
- 108validatesTable 330 Currency Exchange Rate Starting Date
- 109validatesTable 330 Currency Exchange Rate Exchange Rate Amount
- 109callsCodeunit 130440 Library - Random RandDec
- 110validatesTable 330 Currency Exchange Rate Relational Exch. Rate Amount
- 111callsCodeunit 130440 Library - Random RandDec
- 113writesTable 330 Currency Exchange Rate Insert(true)
CreateExtendedTextHeader line 116
- 119validatesTable 279 Extended Text Header Table Name
- 120validatesTable 279 Extended Text Header No.
- 121validatesTable 279 Extended Text Header Sales Invoice
- 122validatesTable 279 Extended Text Header Sales Quote
- 123writesTable 279 Extended Text Header Insert(true)
CreateExtendedTextLine line 126
- 131validatesTable 280 Extended Text Line Table Name
- 132validatesTable 280 Extended Text Line No.
- 133validatesTable 280 Extended Text Line Language Code
- 134validatesTable 280 Extended Text Line Text No.
- 136validatesTable 280 Extended Text Line Line No.
- 136callsCodeunit 131000 Library - Utility GetNewLineNo
- 137validatesTable 280 Extended Text Line Text
- 137callsCodeunit 131000 Library - Utility GenerateRandomCode
- 139writesTable 280 Extended Text Line Insert(true)
CreateItem line 142
- 144callsCodeunit 132201 Library - Inventory CreateItemWithUnitPriceAndUnitCost
- 144callsCodeunit 130440 Library - Random RandDecInDecimalRange
CreateItemAsService line 147
- 152callsCodeunit 132201 Library - Inventory CreateItem
- 154writesTable 27 Item Insert(true)
- 155validatesTable 27 Item Base Unit of Measure
- 155callsFindUnitOfMeasure
- 156validatesTable 27 Item Unit Price
- 156callsCodeunit 130440 Library - Random RandDecInDecimalRange
- 157validatesTable 27 Item Type
- 158validatesTable 27 Item Gen. Prod. Posting Group
- 160validatesTable 27 Item VAT Prod. Posting Group
- 162writesTable 27 Item Modify
- 163raisesOnBeforeCreateItemAsServiceItemGet
CreateJob line 167
- 169callsCodeunit 131920 Library - Job CreateJob
CreateResponsabilityCenter line 172
- 175validatesTable 5714 Responsibility Center Code
- 175callsCodeunit 131000 Library - Utility GenerateRandomCode
- 177writesTable 5714 Responsibility Center Insert
CreateSalesInvoiceHeader line 180
- 182callsCodeunit 130509 Library - Sales CreateSalesHeader
CreateSalesCrMemoHeader line 185
- 187callsCodeunit 130509 Library - Sales CreateSalesHeader
CreateSalesQuoteHeaderWithLines line 190
- 195callsCodeunit 130509 Library - Sales CreateSalesHeader
- 198callsCodeunit 130509 Library - Sales CreateSalesLine
CreateSalesQuoteHeader line 201
- 203callsCodeunit 130509 Library - Sales CreateSalesHeader
CreateSalesOrderHeader line 206
- 208callsCodeunit 130509 Library - Sales CreateSalesHeader
CreateSalesLine line 211
- 216callsCodeunit 130509 Library - Sales CreateSalesLine
CreatePurchaseInvoiceHeader line 219
- 221callsCodeunit 130512 Library - Purchase CreatePurchHeader
CreatePurchaseLine line 224
- 229callsCodeunit 130512 Library - Purchase CreatePurchaseLine
CreatePurchaseCrMemoHeader line 232
- 234callsCodeunit 130512 Library - Purchase CreatePurchHeader
CreateStandardSalesCode line 237
- 240validatesTable 170 Standard Sales Code Code
- 243callsCodeunit 131000 Library - Utility GenerateRandomCode
- 245callsCodeunit 131000 Library - Utility GetFieldLength
- 246validatesTable 170 Standard Sales Code Description
- 247writesTable 170 Standard Sales Code Insert(true)
CreateStandardSalesLine line 250
- 255validatesTable 171 Standard Sales Line Standard Sales Code
- 257validatesTable 171 Standard Sales Line Line No.
- 257callsCodeunit 131000 Library - Utility GetNewLineNo
- 258writesTable 171 Standard Sales Line Insert(true)
CreateStandardPurchaseCode line 261
- 264validatesTable 173 Standard Purchase Code Code
- 267callsCodeunit 131000 Library - Utility GenerateRandomCode
- 269callsCodeunit 131000 Library - Utility GetFieldLength
- 270validatesTable 173 Standard Purchase Code Description
- 271writesTable 173 Standard Purchase Code Insert(true)
CreateStandardPurchaseLine line 274
- 279validatesTable 174 Standard Purchase Line Standard Purchase Code
- 281validatesTable 174 Standard Purchase Line Line No.
- 281callsCodeunit 131000 Library - Utility GetNewLineNo
- 282writesTable 174 Standard Purchase Line Insert(true)
CreateVendor line 285
- 287callsCodeunit 130512 Library - Purchase CreateVendor
CreateVendorPurchaseCode line 290
- 293validatesTable 175 Standard Vendor Purchase Code Vendor No.
- 294validatesTable 175 Standard Vendor Purchase Code Code
- 295writesTable 175 Standard Vendor Purchase Code Insert(true)
CreateVendorTemplate line 298
- 302callsCodeunit 131903 Library - Rapid Start CreateConfigTemplateHeader
- 303validatesTable 8618 Config. Template Header Table ID
- 304writesTable 8618 Config. Template Header Modify(true)
- 306callsCreateVendorTemplateLine
- 308callsCreateVendorTemplateLine
- 310callsCreateVendorTemplateLine
- 311callsFindGenBusPostingGroup
- 312callsCreateVendorTemplateLine
- 313callsCodeunit 130512 Library - Purchase FindVendorPostingGroup
CreateVendorTemplateLine line 316
- 320callsCodeunit 131903 Library - Rapid Start CreateConfigTemplateLine
- 321validatesTable 8619 Config. Template Line Field ID
- 322validatesTable 8619 Config. Template Line Field Name
- 324validatesTable 8619 Config. Template Line Default Value
- 326validatesTable 8619 Config. Template Line Default Value
- 326callsCodeunit 130440 Library - Random RandIntInRange
- 327validatesTable 8619 Config. Template Line Skip Relation Check
- 328writesTable 8619 Config. Template Line Modify(true)
FindVATBusPostingGroupZeroVAT line 347
PostSalesInvoice line 360
- 362callsCodeunit 130509 Library - Sales PostSalesDocument
PostPurchaseInvoice line 365
- 367callsCodeunit 130512 Library - Purchase PostPurchaseDocument
UpdatePurchHeaderDocTotal line 370
- 374runsCodeunit 415 Release Purchase Document
- 378writesTable 38 Purchase Header Modify(true)
- 379callsCodeunit 415 Release Purchase Document Reopen
SetInvoiceDiscountToCustomer line 382
- 386callsCodeunit 131300 Library - ERM CreateInvDiscForCustomer
- 387validatesTable 19 Cust. Invoice Disc. Discount %
- 388writesTable 19 Cust. Invoice Disc. Modify(true)
SetInvoiceDiscountToVendor line 391
- 395callsCodeunit 131300 Library - ERM CreateInvDiscForVendor
- 396validatesTable 24 Vendor Invoice Disc. Discount %
- 397writesTable 24 Vendor Invoice Disc. Modify(true)
SetVATBusPostingGrPriceSetup line 400
- 411validatesTable 325 VAT Posting Setup VAT Bus. Posting Group
- 412validatesTable 325 VAT Posting Setup VAT Prod. Posting Group
- 413writesTable 325 VAT Posting Setup Insert
CreateVATPostingSetup line 417
- 419callsCodeunit 131300 Library - ERM CreateVATPostingSetupWithAccounts
- 420callsCodeunit 130440 Library - Random RandIntInRange
CreateGLAccount line 423
- 425callsCodeunit 131300 Library - ERM CreateGLAccountNo
FindVATProdPostingGroupZeroVAT line 428
CreateGLAccountWithPostingSetup line 441
- 447callsCreateVATPostingSetup
- 449callsCreateGLAccount
- 450validatesTable 15 G/L Account Name
- 451validatesTable 15 G/L Account Direct Posting
- 452validatesTable 15 G/L Account VAT Bus. Posting Group
- 453validatesTable 15 G/L Account VAT Prod. Posting Group
- 454writesTable 15 G/L Account Modify
CreateZeroVATPostingSetupByProdGroupCode line 457, local
- 462validatesTable 323 VAT Business Posting Group Code
- 464callsCodeunit 131000 Library - Utility GenerateRandomCode
- 466writesTable 323 VAT Business Posting Group Insert
- 468callsCreateZeroVATPostingSetup
CreateZeroVATPostingSetupByBusGroupCode line 471, local
- 476validatesTable 324 VAT Product Posting Group Code
- 478callsCodeunit 131000 Library - Utility GenerateRandomCode
- 480writesTable 324 VAT Product Posting Group Insert
- 482callsCreateZeroVATPostingSetup
CreateZeroVATPostingSetup line 485, local
- 488validatesTable 325 VAT Posting Setup VAT Bus. Posting Group
- 489validatesTable 325 VAT Posting Setup VAT Prod. Posting Group
- 490validatesTable 325 VAT Posting Setup VAT Identifier
- 492callsCodeunit 131000 Library - Utility GenerateRandomCode
- 494validatesTable 325 VAT Posting Setup VAT %
- 495validatesTable 325 VAT Posting Setup Sales VAT Account
- 495callsCreateGLAccount
- 496validatesTable 325 VAT Posting Setup Purchase VAT Account
- 496callsCreateGLAccount
- 497writesTable 325 VAT Posting Setup Insert
InitGlobalDimCodeValue line 500
- 519callsCodeunit 131001 Library - Dimension CreateDimension
- 522callsCodeunit 131001 Library - Dimension CreateDimensionValue
FindSalesCorrectiveInvoice line 531
- 535callsTable 1900 Cancelled Document FindSalesCancelledCrMemo
FindSalesCorrectiveCrMemo line 539
- 543callsTable 1900 Cancelled Document FindSalesCancelledInvoice
FindPurchCorrectiveInvoice line 547
- 551callsTable 1900 Cancelled Document FindPurchCancelledCrMemo
FindPurchCorrectiveCrMemo line 555
- 559callsTable 1900 Cancelled Document FindPurchCancelledInvoice
MockCancelledDocument line 563
- 571writesTable 1900 Cancelled Document Insert
UpdateInvRoundingAccountWithSalesSetup line 574
- 580callsCodeunit 130509 Library - Sales GetInvRoundingAccountOfCustPostGroup
- 582validatesTable 252 General Posting Setup Sales Account
- 582callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 583validatesTable 252 General Posting Setup Sales Credit Memo Account
- 583callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 584writesTable 252 General Posting Setup Modify(true)
UpdateInvRoundingAccountWithPurchSetup line 587
- 593callsCodeunit 130509 Library - Sales GetInvRoundingAccountOfCustPostGroup
- 595validatesTable 252 General Posting Setup Purch. Account
- 595callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 596validatesTable 252 General Posting Setup Purch. Credit Memo Account
- 596callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 597writesTable 252 General Posting Setup Modify(true)
GetAvgDaysToPayLabel line 600
- 604callsCodeunit 32 Customer Card Calculations GetAvgDaysToPayLabel