Codeunit "Job Jnl.-Post Line"

ID 1012
Namespace: Microsoft.Projects.Project.Posting

Properties

Name Value
Permissions TableData "Job Ledger Entry" = rimd, TableData "Job Register" = rimd, TableData Job = rimd, TableData "Value Entry" = rimd
TableNo Table Microsoft.Projects.Project.Journal."Job Journal Line"

Methods

RunWithCheck

procedure RunWithCheck(var JobJnlLine2: Record "Job Journal Line"): Integer

Parameters

Name Type Description
JobJnlLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"

Returns

Type Description
Integer

CreateJobLedgEntry

procedure CreateJobLedgEntry(JobJnlLine2: Record "Job Journal Line"): Integer

Parameters

Name Type Description
JobJnlLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"

Returns

Type Description
Integer

SetGLEntryNo

procedure SetGLEntryNo(GLEntryNo2: Integer)

Parameters

Name Type Description
GLEntryNo2 Integer

Events

OnAfterApplyUsageLink

[IntegrationEvent(False,False)]
local procedure OnAfterApplyUsageLink(var JobLedgerEntry: Record "Job Ledger Entry")

Parameters

Name Type Description
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"

OnAfterCopyJobJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyJobJnlLine(var JobJournalLine: Record "Job Journal Line", var JobJournalLine2: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
JobJournalLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterJobLedgEntryInsert

[IntegrationEvent(False,False)]
local procedure OnAfterJobLedgEntryInsert(var JobLedgerEntry: Record "Job Ledger Entry", JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterPostItem

[IntegrationEvent(False,False)]
local procedure OnAfterPostItem(var JobJournalLine2: Record "Job Journal Line", var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line", var JobLedgEntryNo: Integer)

Parameters

Name Type Description
JobJournalLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
ItemJnlPostLine Codeunit Microsoft.Inventory.Posting."Item Jnl.-Post Line"
JobLedgEntryNo Integer

OnAfterRunCode

[IntegrationEvent(True,False)]
local procedure OnAfterRunCode(var JobJournalLine: Record "Job Journal Line", var JobLedgEntryNo: Integer, var JobRegister: Record "Job Register", var NextEntryNo: Integer)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
JobLedgEntryNo Integer
JobRegister Table Microsoft.Projects.Project.Ledger."Job Register"
NextEntryNo Integer

OnBeforeCheckJob

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckJob(var JobJournalLine: Record "Job Journal Line", Job: Record Job, var IsHandled: Boolean, var JobRegister: Record "Job Register", var NextEntryNo: Integer)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
Job Table Microsoft.Projects.Project.Job.Job
IsHandled Boolean
JobRegister Table Microsoft.Projects.Project.Ledger."Job Register"
NextEntryNo Integer

OnBeforeGetAndCheckJob

[IntegrationEvent(False,False)]
local procedure OnBeforeGetAndCheckJob(var JobJournalLine: Record "Job Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean

OnBeforeCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCode(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnBeforeApplyUsageLink

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyUsageLink(var JobLedgerEntry: Record "Job Ledger Entry", var JobJournalLine: Record "Job Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean

OnBeforeCreateJobLedgEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateJobLedgEntry(var JobJournalLine: Record "Job Journal Line", var IsHandled: Boolean, var JobLedgEntryNo: Integer)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean
JobLedgEntryNo Integer

OnBeforeCreateJobRegister

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateJobRegister(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnBeforeGetJobConsumptionValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeGetJobConsumptionValueEntry(var JobJournalLine: Record "Job Journal Line", var Result: Boolean, var IsHandled: Boolean, var ValueEntry: Record "Value Entry")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
Result Boolean
IsHandled Boolean
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnBeforeJobLedgEntryInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeJobLedgEntryInsert(var JobLedgerEntry: Record "Job Ledger Entry", JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnBeforeJobPlanningReservationExists

[IntegrationEvent(False,False)]
local procedure OnBeforeJobPlanningReservationExists(ItemNo: Code[20], JobNo: Code[20], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemNo Code[20]
JobNo Code[20]
Result Boolean
IsHandled Boolean

OnBeforeItemPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeItemPosting(var JobJournalLine: Record "Job Journal Line", var NextEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
NextEntryNo Integer
IsHandled Boolean

OnBeforeModifyValueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeModifyValueEntry(var ValueEntry: Record "Value Entry", JobJournalLine: Record "Job Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean

OnBeforePostResource

[IntegrationEvent(False,False)]
local procedure OnBeforePostResource(var JobJournalLine: Record "Job Journal Line", var JobJnlLine2: Record "Job Journal Line", var EntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
JobJnlLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
EntryNo Integer
IsHandled Boolean

OnBeforePostWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostWhseJnlLine(ItemJnlLine: Record "Item Journal Line", OriginalQuantity: Decimal, OriginalQuantityBase: Decimal, var TempTrackingSpecification: Record "Tracking Specification" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OriginalQuantity Decimal
OriginalQuantityBase Decimal
TempTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
IsHandled Boolean

OnBeforeRunWithCheck

[IntegrationEvent(False,False)]
local procedure OnBeforeRunWithCheck(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnBeforeUpdateJobJnlLineAmount

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateJobJnlLineAmount(var JobJnlLineToUpdate: Record "Job Journal Line", var RemainingAmount: Decimal, var RemainingAmountLCY: Decimal, var RemainingQtyToTrack: Decimal, AmtRoundingPrecision: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
JobJnlLineToUpdate Table Microsoft.Projects.Project.Journal."Job Journal Line"
RemainingAmount Decimal
RemainingAmountLCY Decimal
RemainingQtyToTrack Decimal
AmtRoundingPrecision Decimal
IsHandled Boolean

OnBeforeUpdateJobJnlLineResourceGroupNo

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateJobJnlLineResourceGroupNo(var JobJnlLine2: Record "Job Journal Line", ResJnlLine: Record "Res. Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobJnlLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
ResJnlLine Table Microsoft.Projects.Resources.Journal."Res. Journal Line"
IsHandled Boolean

OnCheckJobOnBeforeTestJobTaskType

[IntegrationEvent(False,False)]
local procedure OnCheckJobOnBeforeTestJobTaskType(var JobJournalLine: Record "Job Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean

OnCodeOnAfterCalcShouldPostUsage

[IntegrationEvent(False,False)]
local procedure OnCodeOnAfterCalcShouldPostUsage(var JobJournalLine2: Record "Job Journal Line", var ShouldPostUsage: Boolean, var JobLedgEntryNo: Integer)

Parameters

Name Type Description
JobJournalLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
ShouldPostUsage Boolean
JobLedgEntryNo Integer

OnCreateJobLedgEntryOnBeforeAssignQtyCostPrice

[IntegrationEvent(False,False)]
local procedure OnCreateJobLedgEntryOnBeforeAssignQtyCostPrice(var JobLedgEntry: Record "Job Ledger Entry", JobJournalLine: Record "Job Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobLedgEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean

OnCreateJobLedgerEntryOnAfterAssignLedgerEntryTypeAndNo

[IntegrationEvent(False,False)]
local procedure OnCreateJobLedgerEntryOnAfterAssignLedgerEntryTypeAndNo(var JobLedgEntry: Record "Job Ledger Entry", JobJournalLine: Record "Job Journal Line", GLEntryNo: Integer)

Parameters

Name Type Description
JobLedgEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
GLEntryNo Integer

OnGetJobConsumptionValueEntryFilter

[IntegrationEvent(False,False)]
local procedure OnGetJobConsumptionValueEntryFilter(var ValueEntry: Record "Value Entry", JobJournalLine: Record "Job Journal Line", LocalJobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
LocalJobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnPostItemOnAfterApplyItemTracking

[IntegrationEvent(False,False)]
local procedure OnPostItemOnAfterApplyItemTracking(var JobJournalLine: Record "Job Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", var JobLedgerEntry: Record "Job Ledger Entry", var SkipJobLedgerEntry: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
SkipJobLedgerEntry Boolean

OnPostItemOnAfterSetSkipJobLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnPostItemOnAfterSetSkipJobLedgerEntry(var JobJnlLine2: Record "Job Journal Line", ItemLedgEntry: Record "Item Ledger Entry", var SkipJobLedgerEntry: Boolean)

Parameters

Name Type Description
JobJnlLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
SkipJobLedgerEntry Boolean

OnPostItemOnBeforeGetJobConsumptionValueEntry

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeGetJobConsumptionValueEntry(var JobJournalLine: Record "Job Journal Line", var NextEntryNo: Integer)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
NextEntryNo Integer

OnPostItemOnBeforeUpdateTotalAmounts

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeUpdateTotalAmounts(var JobJournalLine: Record "Job Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", ValueEntry: Record "Value Entry")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"

OnPostItemOnBeforeAssignItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostItemOnBeforeAssignItemJnlLine(var JobJournalLine: Record "Job Journal Line", var JobJournalLine2: Record "Job Journal Line", var ItemJnlLine: Record "Item Journal Line", JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
JobJournalLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnBeforeCreateJobLedgEntryFromPostItem

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateJobLedgEntryFromPostItem(var JobJournalLine: Record "Job Journal Line", var ValueEntry: Record "Value Entry", var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
ValueEntry Table Microsoft.Inventory.Ledger."Value Entry"
IsHandled Boolean

OnPostItemOnAfterPostWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostItemOnAfterPostWhseJnlLine(var JobJournalLine2: Record "Job Journal Line", var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")

Parameters

Name Type Description
JobJournalLine2 Table Microsoft.Projects.Project.Journal."Job Journal Line"
ItemJnlPostLine Codeunit Microsoft.Inventory.Posting."Item Jnl.-Post Line"

OnCodeOnBeforeCheckLine

[IntegrationEvent(False,False)]
local procedure OnCodeOnBeforeCheckLine(var JobJournalLine: Record "Job Journal Line", CalledFromInvtPutawayPick: Boolean, var CheckLine: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
CalledFromInvtPutawayPick Boolean
CheckLine Boolean

OnBeforeGetNextEntryNo

[IntegrationEvent(False,False)]
local procedure OnBeforeGetNextEntryNo(var JobJournalLine: Record "Job Journal Line", var NextEntryNo: Integer, var IsHandled: Boolean, var JobLedgerEntry: Record "Job Ledger Entry")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
NextEntryNo Integer
IsHandled Boolean
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"

OnIsertJobRegisterOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnIsertJobRegisterOnBeforeInsert(var JobJournalLine: Record "Job Journal Line", var JobRegister: Record "Job Register")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
JobRegister Table Microsoft.Projects.Project.Ledger."Job Register"

OnAfterGetNextEntryNo

[IntegrationEvent(False,False)]
local procedure OnAfterGetNextEntryNo(var JobLedgerEntry: Record "Job Ledger Entry", var NextEntryNo: Integer)

Parameters

Name Type Description
JobLedgerEntry Table Microsoft.Projects.Project.Ledger."Job Ledger Entry"
NextEntryNo Integer

OnAfterUpdateJobJnlLineTotalAmounts

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateJobJnlLineTotalAmounts(var JobJournalLine: Record "Job Journal Line", AmtRoundingPrecision: Decimal, GLAmtRoundingPrecision: Decimal)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
AmtRoundingPrecision Decimal
GLAmtRoundingPrecision Decimal

See also