Codeunit 131920 Library - Job
src/Layers/W1/Tests/ApplicationTestLibrary/LibraryJob.Codeunit.al67 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CreateJob line 28
- 30callsCreateCustomer
CreateJob line 33
- 46validatesTable 167 Job No.
- 47writesTable 167 Job Insert(true)
- 48validatesTable 167 Job Sell-to Customer No.
- 49validatesTable 167 Job Job Posting Group
- 49callsFindJobPostingGroup
- 50writesTable 167 Job Modify(true)
CreateJobTask line 53
- 68validatesTable 1001 Job Task Job No.
- 69validatesTable 1001 Job Task Job Task No.
- 70writesTable 1001 Job Task Insert(true)
- 72validatesTable 1001 Job Task Job Task Type
- 73writesTable 1001 Job Task Modify(true)
CreateJobAssignedResource line 76
- 81validatesTable 1008 Job Assigned Resource Job No.
- 82validatesTable 1008 Job Assigned Resource Job Task No.
- 83validatesTable 1008 Job Assigned Resource Resource No.
- 84writesTable 1008 Job Assigned Resource Insert(true)
CreateJobPlanningLine line 87
- 92validatesTable 1003 Job Planning Line Job No.
- 93validatesTable 1003 Job Planning Line Job Task No.
- 94validatesTable 1003 Job Planning Line Line No.
- 94callsGetNextLineNo
- 95writesTable 1003 Job Planning Line Insert(true)
- 97validatesTable 1003 Job Planning Line Planning Date
- 98validatesTable 1003 Job Planning Line Line Type
- 99validatesTable 1003 Job Planning Line Type
- 101validatesTable 1003 Job Planning Line No.
- 101callsFindConsumable
- 102validatesTable 1003 Job Planning Line Quantity
- 102callsCodeunit 130440 Library - Random RandInt
- 103callsGLAccountType
- 104validatesTable 1003 Job Planning Line Unit Cost
- 104callsCodeunit 130440 Library - Random RandInt
- 105validatesTable 1003 Job Planning Line Unit Price
- 105callsCodeunit 130440 Library - Random RandIntInRange
- 108validatesTable 1003 Job Planning Line Description
- 108callsCodeunit 131000 Library - Utility GenerateGUID
- 109writesTable 1003 Job Planning Line Modify(true)
CreateJobPlanningLine line 115
- 118validatesTable 1003 Job Planning Line Job No.
- 119validatesTable 1003 Job Planning Line Job Task No.
- 120validatesTable 1003 Job Planning Line Line No.
- 120callsGetNextLineNo
- 121writesTable 1003 Job Planning Line Insert(true)
- 122validatesTable 1003 Job Planning Line Planning Date
- 123validatesTable 1003 Job Planning Line Line Type
- 124validatesTable 1003 Job Planning Line Type
- 125validatesTable 1003 Job Planning Line No.
- 126validatesTable 1003 Job Planning Line Quantity
- 127writesTable 1003 Job Planning Line Modify(true)
CreateJobJournalLine line 130
- 142validatesTable 210 Job Journal Line Line No.
- 145callsCreateJobJournalBatch
- 145callsGetJobJournalTemplate
- 146validatesTable 210 Job Journal Line Journal Template Name
- 147validatesTable 210 Job Journal Line Journal Batch Name
- 148validatesTable 210 Job Journal Line Line No.
- 155writesTable 210 Job Journal Line Insert(true)
- 157validatesTable 210 Job Journal Line Line Type
- 158validatesTable 210 Job Journal Line Posting Date
- 159validatesTable 210 Job Journal Line Job No.
- 160validatesTable 210 Job Journal Line Job Task No.
- 161callsGetJobJournalTemplate
- 162validatesTable 210 Job Journal Line Document No.
- 162callsCodeunit 310 No. Series PeekNextNo
- 163writesTable 210 Job Journal Line Modify(true)
CreateJobJournalLineForType line 166
- 168callsCreateJobJournalLine
- 171callsAttach2JobJournalLine
- 172validatesTable 210 Job Journal Line Description
- 172callsCodeunit 131000 Library - Utility GenerateGUID
- 173writesTable 210 Job Journal Line Modify(true)
CreateJobJournalLineForPlan line 176
- 181callsCodeunit 130000 Assert IsTrue
- 184callsCreateJobJournalLine
- 185validatesTable 210 Job Journal Line Type
- 186validatesTable 210 Job Journal Line No.
- 187validatesTable 210 Job Journal Line Description
- 187callsCodeunit 131000 Library - Utility GenerateGUID
- 188validatesTable 210 Job Journal Line Quantity
- 190callsIsStandardCosting
- 191callsCodeunit 130440 Library - Random RandInt
- 192validatesTable 210 Job Journal Line Unit Cost
- 193validatesTable 210 Job Journal Line Unit Price
- 195writesTable 210 Job Journal Line Modify(true)
CreateGenJournalLineForPlan line 198
- 202callsCodeunit 130000 Assert IsTrue
- 205callsCreateJobGLJournalLine
- 208validatesTable 81 Gen. Journal Line Description
- 208callsCodeunit 131000 Library - Utility GenerateGUID
- 209validatesTable 81 Gen. Journal Line Job Planning Line No.
- 210validatesTable 81 Gen. Journal Line Job Quantity
- 211writesTable 81 Gen. Journal Line Modify(true)
CreateJobWIPMethod line 214
- 217validatesTable 1006 Job WIP Method Code
- 220callsCodeunit 131000 Library - Utility GenerateRandomCode
- 221callsCodeunit 131000 Library - Utility GetFieldLength
- 222writesTable 1006 Job WIP Method Insert(true)
CreatePurchaseLineForPlan line 225
- 231callsCodeunit 130000 Assert IsTrue
- 236callsCodeunit 130512 Library - Purchase CreatePurchHeader
- 237callsCodeunit 130512 Library - Purchase CreatePurchaseLine
- 237callsJob2PurchaseConsumableType
- 240validatesTable 39 Purchase Line Description
- 241validatesTable 39 Purchase Line Unit of Measure Code
- 242validatesTable 39 Purchase Line Job Line Type
- 243validatesTable 39 Purchase Line Job No.
- 244validatesTable 39 Purchase Line Job Task No.
- 245validatesTable 39 Purchase Line Job Planning Line No.
- 246writesTable 39 Purchase Line Modify(true)
CreateServiceLineForPlan line 251
- 255callsCodeunit 131902 Library - Service CreateServiceLineForPlan
CreateJobGLAccountPrice line 259
- 262validatesTable 1014 Job G/L Account Price Job No.
- 263validatesTable 1014 Job G/L Account Price Job Task No.
- 264validatesTable 1014 Job G/L Account Price G/L Account No.
- 265validatesTable 1014 Job G/L Account Price Currency Code
- 266writesTable 1014 Job G/L Account Price Insert(true)
CreateJobItemPrice line 269
- 272validatesTable 1013 Job Item Price Job No.
- 273validatesTable 1013 Job Item Price Job Task No.
- 274validatesTable 1013 Job Item Price Item No.
- 275validatesTable 1013 Job Item Price Currency Code
- 276validatesTable 1013 Job Item Price Variant Code
- 277validatesTable 1013 Job Item Price Unit of Measure Code
- 278writesTable 1013 Job Item Price Insert(true)
CreateJobResourcePrice line 281
- 284validatesTable 1012 Job Resource Price Job No.
- 285validatesTable 1012 Job Resource Price Job Task No.
- 286validatesTable 1012 Job Resource Price Type
- 287validatesTable 1012 Job Resource Price Code
- 288validatesTable 1012 Job Resource Price Work Type Code
- 289validatesTable 1012 Job Resource Price Currency Code
- 290writesTable 1012 Job Resource Price Insert(true)
CreateJobJournalBatch line 293
- 303validatesTable 237 Job Journal Batch Journal Template Name
- 304validatesTable 237 Job Journal Batch Name
- 305callsTable 237 Job Journal Batch SetupNewBatch
- 306writesTable 237 Job Journal Batch Insert(true)
CreateJobJournalTemplate line 309
- 312validatesTable 209 Job Journal Template Name
- 313callsCodeunit 131000 Library - Utility GenerateRandomCode
- 314writesTable 209 Job Journal Template Insert(true)
CreateJobPostingGroup line 317
- 320validatesTable 208 Job Posting Group Code
- 321callsCodeunit 131000 Library - Utility GenerateRandomCode
- 322validatesTable 208 Job Posting Group WIP Costs Account
- 322callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 323validatesTable 208 Job Posting Group WIP Accrued Costs Account
- 323callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 324validatesTable 208 Job Posting Group Job Costs Applied Account
- 324callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 325validatesTable 208 Job Posting Group Job Costs Adjustment Account
- 325callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 326validatesTable 208 Job Posting Group G/L Expense Acc. (Contract)
- 326callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 327validatesTable 208 Job Posting Group Job Sales Adjustment Account
- 327callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 328validatesTable 208 Job Posting Group WIP Accrued Sales Account
- 328callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 329validatesTable 208 Job Posting Group WIP Invoiced Sales Account
- 329callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 330validatesTable 208 Job Posting Group Job Sales Applied Account
- 330callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 331validatesTable 208 Job Posting Group Recognized Costs Account
- 331callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 332validatesTable 208 Job Posting Group Recognized Sales Account
- 332callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 333validatesTable 208 Job Posting Group Item Costs Applied Account
- 333callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 334validatesTable 208 Job Posting Group Resource Costs Applied Account
- 334callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 335validatesTable 208 Job Posting Group G/L Costs Applied Account
- 335callsCodeunit 131300 Library - ERM CreateGLAccountNo
- 336writesTable 208 Job Posting Group Insert(true)
GetJobJournalTemplate line 339
- 343validatesTable 209 Job Journal Template Name
- 344writesTable 209 Job Journal Template Insert(true)
- 347validatesTable 209 Job Journal Template No. Series
- 347callsGetJobTestNoSeries
- 348writesTable 209 Job Journal Template Modify(true)
DeleteJobJournalTemplate line 352
- 357writesTable 209 Job Journal Template Delete(true)
CreateJobGLJournalLine line 360
- 370callsCodeunit 131300 Library - ERM CreateGLAccount
- 373validatesTable 81 Gen. Journal Line Line No.
- 376callsCreateGenJournalBatch
- 376callsGetGenJournalTemplate
- 377validatesTable 81 Gen. Journal Line Journal Template Name
- 378validatesTable 81 Gen. Journal Line Journal Batch Name
- 379validatesTable 81 Gen. Journal Line Line No.
- 385writesTable 81 Gen. Journal Line Insert(true)
- 387validatesTable 81 Gen. Journal Line Posting Date
- 388validatesTable 81 Gen. Journal Line Account Type
- 389validatesTable 81 Gen. Journal Line Account No.
- 390validatesTable 81 Gen. Journal Line Description
- 391callsCodeunit 131300 Library - ERM CreateGLAccount
- 392validatesTable 81 Gen. Journal Line Bal. Account No.
- 393validatesTable 81 Gen. Journal Line Amount
- 393callsCodeunit 130440 Library - Random RandDec
- 394validatesTable 81 Gen. Journal Line Job Line Type
- 395validatesTable 81 Gen. Journal Line Job No.
- 396validatesTable 81 Gen. Journal Line Job Task No.
- 397validatesTable 81 Gen. Journal Line Job Quantity
- 397callsCodeunit 130440 Library - Random RandInt
- 398callsGetGenJournalTemplate
- 399validatesTable 81 Gen. Journal Line Document No.
- 399callsCodeunit 310 No. Series PeekNextNo
- 400validatesTable 81 Gen. Journal Line Source Code
- 401writesTable 81 Gen. Journal Line Modify(true)
CreateGenJournalBatch line 404
- 420validatesTable 232 Gen. Journal Batch Journal Template Name
- 421validatesTable 232 Gen. Journal Batch Name
- 422callsTable 232 Gen. Journal Batch SetupNewBatch
- 423writesTable 232 Gen. Journal Batch Insert(true)
GetGenJournalTemplate line 426
- 434validatesTable 80 Gen. Journal Template Name
- 435writesTable 80 Gen. Journal Template Insert(true)
- 438callsCodeunit 131300 Library - ERM CreateSourceCode
- 439validatesTable 80 Gen. Journal Template Source Code
- 440validatesTable 80 Gen. Journal Template No. Series
- 440callsGetJobTestNoSeries
- 441writesTable 80 Gen. Journal Template Modify(true)
GetJobTestNoSeries line 446
- 452callsCodeunit 131000 Library - Utility CreateNoSeries
- 453callsCodeunit 131000 Library - Utility CreateNoSeriesLine
SetJobNoSeriesCode line 459
- 466callsCodeunit 131000 Library - Utility CreateNoSeries
- 467callsCodeunit 131000 Library - Utility CreateNoSeriesLine
- 468validatesTable 315 Jobs Setup Job Nos.
- 469writesTable 315 Jobs Setup Modify(true)
CreateConsumable line 473
- 484callsFindConsumable
- 487writesTable 156 Resource Insert(true)
- 489writesTable 205 Resource Unit of Measure Insert(true)
- 494callsFindConsumable
- 497writesTable 27 Item Insert(true)
- 499writesTable 5404 Item Unit of Measure Insert(true)
- 502callsGLAccountType
- 504callsFindConsumable
- 506writesTable 15 G/L Account Insert(true)
- 510callsCodeunit 130000 Assert Fail
Attach2PurchaseLine line 514
- 517validatesTable 39 Purchase Line Type
- 518validatesTable 39 Purchase Line No.
- 518callsFindConsumable
- 518callsPurchase2JobConsumableType
- 519validatesTable 39 Purchase Line Quantity
- 519callsCodeunit 130440 Library - Random RandInt
- 521validatesTable 39 Purchase Line Direct Unit Cost
- 521callsCodeunit 130440 Library - Random RandInt
- 522writesTable 39 Purchase Line Modify(true)
Attach2JobJournalLine line 525, local
- 528validatesTable 210 Job Journal Line Type
- 529validatesTable 210 Job Journal Line No.
- 529callsFindConsumable
- 530validatesTable 210 Job Journal Line Quantity
- 530callsCodeunit 130440 Library - Random RandInt
- 532validatesTable 210 Job Journal Line Unit Price
- 532callsCodeunit 130440 Library - Random RandInt
- 533writesTable 210 Job Journal Line Modify(true)
AttachJobTask2PurchaseLine line 536
- 539validatesTable 39 Purchase Line Job No.
- 540validatesTable 39 Purchase Line Job Task No.
- 541writesTable 39 Purchase Line Modify(true)
CreateCustomer line 544, local
- 548callsCodeunit 130509 Library - Sales CreateCustomer
FindConsumable line 552
- 556callsCodeunit 130511 Library - Resource CreateResourceNo
- 558callsFindItem
- 560callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
FindItem line 566
- 570callsCodeunit 132201 Library - Inventory CreateItem
- 571validatesTable 27 Item Unit Price
- 571callsCodeunit 130440 Library - Random RandDec
- 572validatesTable 27 Item Unit Cost
- 572callsCodeunit 130440 Library - Random RandDec
- 573writesTable 27 Item Modify(true)
FindJobPostingGroup line 577
UseJobPlanningLine line 586
UseJobPlanningLineExplicit line 592
- 599callsJobConsumption
- 601callsCreateJobJournalLineForPlan
- 602validatesTable 210 Job Journal Line Job Planning Line No.
- 603writesTable 210 Job Journal Line Modify(true)
- 604callsPostJobJournal
- 606callsGenJournalConsumption
- 608callsCodeunit 130000 Assert AreEqual
- 608callsGLAccountType
- 609callsCreateGenJournalLineForPlan
- 610callsCodeunit 131300 Library - ERM PostGeneralJnlLine
- 619callsPurchaseConsumption
- 621callsCreatePurchaseLineForPlan
- 623callsCodeunit 130512 Library - Purchase PostPurchaseDocument
- 634callsCodeunit 130000 Assert Fail
PostJobJournal line 638
GetGLEntry line 647, local
- 670callsCodeunit 130000 Assert Fail
VerifyGLEntries line 676
- 683callsGetGLEntry
- 684callsCodeunit 130000 Assert AreEqual
VerifyPurchaseDocPostingForJob line 688
- 708writesTable 210 Job Journal Line Insert
- 711callsVerifyJobJournalPosting
VerifyJobJournalPosting line 714
- 718callsCodeunit 130000 Assert IsFalse
- 721callsVerifyJobLedger
- 722callsVerifyPlanningLines
VerifyJobLedger line 726
- 734callsCodeunit 130000 Assert AreEqual
- 739callsMax
- 739callsGetAmountRoundingPrecision
- 739callsGetAmountRoundingPrecision
- 740callsCodeunit 130000 Assert AreEqual
- 741callsCodeunit 130000 Assert AreEqual
- 742callsCodeunit 130000 Assert AreNearlyEqual
- 743callsCodeunit 130000 Assert AreNearlyEqual
- 744callsCodeunit 130000 Assert AreEqual
VerifyPlanningLines line 747
- 760callsUsageLineTypeBlank
- 761callsVerifyPlanningLineCountBlank
- 762callsUsageLineTypeSchedule
- 763callsVerifyPlanningLineCountSchedul
- 764callsUsageLineTypeContract
- 765callsVerifyPlanningLineCountContrac
- 766callsUsageLineTypeBoth
- 767callsVerifyPlanningLineCountBoth
- 769callsCodeunit 130000 Assert Fail
- 772callsMax
- 772callsGetAmountRoundingPrecision
- 772callsGetAmountRoundingPrecision
- 775callsCodeunit 130000 Assert AreEqual
- 776callsCodeunit 130000 Assert AreEqual
- 777callsCodeunit 130000 Assert AreEqual
- 778callsCodeunit 130000 Assert AreNearlyEqual
- 779callsCodeunit 130000 Assert AreNearlyEqual
VerifyPlanningLineCountBlank line 783, local
- 791callsCodeunit 130000 Assert AreEqual
- 793callsCodeunit 130000 Assert AreEqual
- 793callsPlanningLineTypeSchedule
- 795callsCodeunit 130000 Assert IsTrue
VerifyPlanningLineCountSchedul line 798, local
- 803callsCodeunit 130000 Assert AreEqual
- 805callsCodeunit 130000 Assert AreEqual
- 805callsPlanningLineTypeSchedule
VerifyPlanningLineCountContrac line 808, local
- 817callsCodeunit 130000 Assert AreEqual
- 819callsCodeunit 130000 Assert AreEqual
- 819callsPlanningLineTypeBoth
- 821callsCodeunit 130000 Assert AreEqual
- 822callsPlanningLineTypeSchedule
- 823callsCodeunit 130000 Assert AreEqual
- 824callsPlanningLineTypeContract
- 825callsCodeunit 130000 Assert AreEqual
- 828callsCodeunit 130000 Assert AreEqual
- 830callsCodeunit 130000 Assert AreEqual
- 830callsPlanningLineTypeContract
VerifyPlanningLineCountBoth line 834, local
- 842callsCodeunit 130000 Assert AreEqual
- 844callsCodeunit 130000 Assert AreEqual
- 844callsPlanningLineTypeBoth
- 846callsCodeunit 130000 Assert AreEqual
- 847callsPlanningLineTypeSchedule
- 848callsCodeunit 130000 Assert AreEqual
- 849callsPlanningLineTypeContract
- 850callsCodeunit 130000 Assert AreEqual
UpdateJobPostingGroup line 854
- 858callsCodeunit 131300 Library - ERM CreateGLAccount
- 859validatesTable 208 Job Posting Group WIP Costs Account
- 860validatesTable 208 Job Posting Group WIP Invoiced Sales Account
- 861validatesTable 208 Job Posting Group WIP Accrued Costs Account
- 862validatesTable 208 Job Posting Group WIP Accrued Sales Account
- 863validatesTable 208 Job Posting Group Job Costs Applied Account
- 864validatesTable 208 Job Posting Group Job Costs Adjustment Account
- 865validatesTable 208 Job Posting Group Job Sales Applied Account
- 866validatesTable 208 Job Posting Group Job Sales Adjustment Account
- 867validatesTable 208 Job Posting Group Resource Costs Applied Account
- 868validatesTable 208 Job Posting Group Recognized Costs Account
- 869validatesTable 208 Job Posting Group Recognized Sales Account
- 870validatesTable 208 Job Posting Group G/L Costs Applied Account
- 871writesTable 208 Job Posting Group Modify(true)
ConfigureGeneralPosting line 874
CreateGeneralPostingSetup line 899
- 904writesTable 252 General Posting Setup Insert(true)
ConfigureVATPosting line 907
CreateVATPostingSetup line 934
- 939callsCodeunit 130440 Library - Random RandIntInRange
- 942callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 946writesTable 325 VAT Posting Setup Insert(true)
SetAutomaticUpdateJobItemCost line 949
- 954validatesTable 315 Jobs Setup Automatic Update Job Item Cost
- 955writesTable 315 Jobs Setup Modify(true)
SetIncomeStatementGLAccounts line 958
- 968callsCodeunit 131300 Library - ERM CreateGLAccountWithSalesSetup
- 970writesTable 15 G/L Account Modify(true)
Service2JobConsumableType line 999
- 1011callsCodeunit 130000 Assert Fail
Purchase2JobConsumableType line 1015
- 1025callsCodeunit 130000 Assert Fail
Job2PurchaseConsumableType line 1029
- 1039callsCodeunit 130000 Assert Fail
Job2SalesConsumableType line 1043
- 1055callsCodeunit 130000 Assert Fail
Job2ServiceConsumableType line 1061
- 1065callsCodeunit 131902 Library - Service Job2ServiceConsumableType
GetUnitAmountRoundingPrecision line 1069
- 1074callsCodeunit 131300 Library - ERM GetUnitAmountRoundingPrecision
GetAmountRoundingPrecision line 1079
- 1084callsCodeunit 131300 Library - ERM GetAmountRoundingPrecision
CopyPurchaseLines line 1089
- 1094writesTable 39 Purchase Line Insert
CopyJobJournalLines line 1098
- 1103writesTable 210 Job Journal Line Insert(true)
UsageLineType line 1108
PlanningLineType line 1150
FindLocation line 1244
- 1248callsCodeunit 130440 Library - Random RandInt
RunUpdateJobItemCost line 1285
- 1293callsReport 1095 Update Job Item Cost UseRequestPage