Codeunit 131920 Library - Job

Application Test Library

78 procedures

ProcedureVersions
CreateJob(var Job: Record Job)new in 28
CreateJob(var Job: Record Job; SellToCustomerNo: Code[20])new in 28
CreateJobTask(Job: Record Job; var JobTask: Record "Job Task")new in 28
CreateJobPlanningLine(LineType: Enum "Job Planning Line Line Type"; Type: Enum "Job Planning Line Type"; JobTask: Record "Job Task"; var JobPlanningLine: Record "Job Planning Line")new in 28
CreateJobPlanningLine(JobTask: Record "Job Task"; LineType: Enum "Job Planning Line Line Type"; Type: Enum "Job Planning Line Type"; No: Code[20]; Quantity: Decimal; var JobPlanningLine: Record "Job Planning Line")new in 28
CreateJobJournalLine(LineType: Enum "Job Line Type"; JobTask: Record "Job Task"; var JobJournalLine: Record "Job Journal Line")new in 28
CreateJobJournalLineForType(LineType: Enum "Job Line Type"; ConsumableType: Enum "Job Planning Line Type"; JobTask: Record "Job Task"; var JobJournalLine: Record "Job Journal Line")new in 28
CreateJobJournalLineForPlan(JobPlanningLine: Record "Job Planning Line"; UsageLineType: Enum "Job Line Type"; Fraction: Decimal; var JobJournalLine: Record "Job Journal Line")new in 28
CreateGenJournalLineForPlan(JobPlanningLine: Record "Job Planning Line"; UsageLineType: Enum "Job Line Type"; Fraction: Decimal; var GenJournalLine: Record "Gen. Journal Line")new in 28
CreateJobWIPMethod(var JobWIPMethod: Record "Job WIP Method")new in 28
CreatePurchaseLineForPlan(JobPlanningLine: Record "Job Planning Line"; UsageLineType: Enum "Job Line Type"; Fraction: Decimal; var PurchaseLine: Record "Purchase Line")new in 28
CreateServiceLineForPlan(JobPlanningLine: Record "Job Planning Line"; UsageLineType: Enum "Job Line Type"; Fraction: Decimal; var ServiceLine: Record "Service Line")new in 28
Pending, tag 27.0, obsolete since 28.0: Moved to codeunit Library Service
CreateJobGLAccountPrice(var JobGLAccountPrice: Record "Job G/L Account Price"; JobNo: Code[20]; JobTaskNo: Code[20]; GLAccountNo: Code[20]; CurrencyCode: Code[10])new in 28
CreateJobItemPrice(var JobItemPrice: Record "Job Item Price"; JobNo: Code[20]; JobTaskNo: Code[20]; ItemNo: Code[20]; CurrencyCode: Code[10]; VariantCode: Code[10]; UnitOfMeasureCode: Code[10])new in 28
CreateJobResourcePrice(var JobResourcePrice: Record "Job Resource Price"; JobNo: Code[20]; JobTaskNo: Code[20]; Type: Option; Code: Code[20]; WorkTypeCode: Code[10]; CurrencyCode: Code[10])new in 28
CreateJobJournalBatch(JobJournalTemplateName: Code[10]; var JobJournalBatch: Record "Job Journal Batch"): Code[10]new in 28
CreateJobJournalTemplate(var JobJournalTemplate: Record "Job Journal Template")new in 28
CreateJobPostingGroup(var JobPostingGroup: Record "Job Posting Group")new in 28
GetJobJournalTemplate(var JobJournalTemplate: Record "Job Journal Template"): Code[10]new in 28
DeleteJobJournalTemplate()new in 28
CreateJobGLJournalLine(JobLineType: Enum "Job Line Type"; JobTask: Record "Job Task"; var GenJournalLine: Record "Gen. Journal Line")new in 28
CreateGenJournalBatch(GenJournalTemplateName: Code[10]; var GenJournalBatch: Record "Gen. Journal Batch")new in 28
GetGenJournalTemplate(var GenJournalTemplate: Record "Gen. Journal Template"): Code[10]new in 28
GetJobTestNoSeries(): Code[20]new in 28
SetJobNoSeriesCode()new in 28
CreateConsumable(Type: Enum "Job Planning Line Type"): Code[20]new in 28
Attach2PurchaseLine(ConsumableType: Enum "Purchase Line Type"; var PurchaseLine: Record "Purchase Line")new in 28
AttachJobTask2PurchaseLine(JobTask: Record "Job Task"; var PurchaseLine: Record "Purchase Line")new in 28
FindConsumable(Type: Enum "Job Planning Line Type"): Code[20]new in 28
FindItem(): Code[20]new in 28
FindJobPostingGroup(): Code[20]new in 28
UseJobPlanningLine(JobPlanningLine: Record "Job Planning Line"; UsageLineType: Enum "Job Line Type"; Fraction: Decimal; var JobJournalLine: Record "Job Journal Line")new in 28
UseJobPlanningLineExplicit(JobPlanningLine: Record "Job Planning Line"; UsageLineType: Enum "Job Line Type"; Fraction: Decimal; Source: Option; var JobJournalLine: Record "Job Journal Line")new in 28
PostJobJournal(var JobJournalLine: Record "Job Journal Line")new in 28
VerifyGLEntries(var JobLedgerEntry: Record "Job Ledger Entry")new in 28
VerifyPurchaseDocPostingForJob(var PurchaseLine: Record "Purchase Line")new in 28
VerifyJobJournalPosting(UsageLink: Boolean; var JobJournalLine: Record "Job Journal Line")new in 28
VerifyJobLedger(JobJournalLine: Record "Job Journal Line")new in 28
VerifyPlanningLines(JobJournalLine: Record "Job Journal Line"; UsageLink: Boolean)new in 28
UpdateJobPostingGroup(var JobPostingGroup: Record "Job Posting Group")new in 28
ConfigureGeneralPosting()new in 28
CreateGeneralPostingSetup(GenBusinessPostingGroupCode: Code[20]; GenProductPostingGroupCode: Code[20]; var GeneralPostingSetup: Record "General Posting Setup")new in 28
ConfigureVATPosting()new in 28
CreateVATPostingSetup(VATBusinessPostingGroupCode: Code[20]; VATProductPostingGroupCode: Code[20]; var VATPostingSetup: Record "VAT Posting Setup")new in 28
SetAutomaticUpdateJobItemCost(IsEnabled: Boolean)new in 28
SetIncomeStatementGLAccounts(RecordRef: RecordRef)new in 28
GetNextLineNo(JobPlanningLine: Record "Job Planning Line"): Integernew in 28
Service2JobConsumableType(Type: Enum "Service Line Type"): Enum "Job Planning Line Type"new in 28
Purchase2JobConsumableType(Type: Enum "Purchase Line Type"): Enum "Job Planning Line Type"new in 28
Job2PurchaseConsumableType(Type: Enum "Job Planning Line Type"): Enum "Purchase Line Type"new in 28
Job2SalesConsumableType(Type: Enum "Job Planning Line Type"): Enum "Sales Line Type"new in 28
Job2ServiceConsumableType(Type: Enum "Job Planning Line Type"): Enum "Service Line Type"new in 28
Pending, tag 27.0, obsolete since 28.0: Moved to codeunit Library Service
GetUnitAmountRoundingPrecision(CurrencyCode: Code[10]): Decimalnew in 28
GetAmountRoundingPrecision(CurrencyCode: Code[10]): Decimalnew in 28
CopyPurchaseLines(var FromPurchaseLine: Record "Purchase Line"; var ToPurchaseLine: Record "Purchase Line")new in 28
CopyJobJournalLines(var FromJobJournalLine: Record "Job Journal Line"; var ToJobJournalLine: Record "Job Journal Line")new in 28
UsageLineType(PlanningLineType2: Enum "Job Planning Line Line Type"): Enum "Job Line Type"new in 28
UsageLineTypeBlank(): Enum "Job Line Type"new in 28
UsageLineTypeSchedule(): Enum "Job Line Type"new in 28
UsageLineTypeContract(): Enum "Job Line Type"new in 28
UsageLineTypeBoth(): Enum "Job Line Type"new in 28
PlanningLineType(UsageLineType2: Enum "Job Line Type"): Enum "Job Planning Line Line Type"new in 28
PlanningLineTypeSchedule(): Enum "Job Planning Line Line Type"new in 28
PlanningLineTypeContract(): Enum "Job Planning Line Line Type"new in 28
PlanningLineTypeBoth(): Enum "Job Planning Line Line Type"new in 28
ItemType(): Enum "Job Planning Line Type"new in 28
ResourceType(): Enum "Job Planning Line Type"new in 28
GLAccountType(): Enum "Job Planning Line Type"new in 28
TextType(): Enum "Job Planning Line Type"new in 28
Max(Left: Decimal; Right: Decimal): Decimalnew in 28
ServiceConsumption(): Integernew in 28
Pending, tag 27.0, obsolete since 28.0: Moved to codeunit Library Service
JobConsumption(): Integernew in 28
GenJournalConsumption(): Integernew in 28
PurchaseConsumption(): Integernew in 28
FindLocation(var Location: Record Location): Code[10]new in 28
GetJobWIPMethod(var JobWIPMethod: Record "Job WIP Method"; Method: Option "Completed Contract","Cost of Sales","Cost Value",POC,"Sales Value")new in 28
RunUpdateJobItemCost(JobNo: Code[20])new in 28
CreateJobAssignedResource(JobNo: Code[20]; JobTaskNo: Code[20]; ResourceNo: Code[20]; var JobAssignedResource: Record "Job Assigned Resource")new in 29