Codeunit "Job Post-Line"

ID 1001
Namespace: Microsoft.Projects.Project.Posting

Properties

Name Value
Permissions TableData "Job Ledger Entry" = rm, TableData "Job Planning Line" = rimd

Methods

InsertPlLineFromLedgEntry

procedure InsertPlLineFromLedgEntry(var JobLedgEntry: Record "Job Ledger Entry")

Parameters

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

PostPlanningLine

procedure PostPlanningLine(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

PostInvoiceContractLine

procedure PostInvoiceContractLine(SalesHeader: Record "Sales Header", SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

PostJobOnSalesLine

procedure PostJobOnSalesLine(JobPlanningLine: Record "Job Planning Line", SalesHeader: Record "Sales Header", SalesLine: Record "Sales Line", EntryType: Enum "Job Journal Line Entry Type")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
EntryType Enum Microsoft.Projects.Project.Journal."Job Journal Line Entry Type"

CalcLineAmountLCY

procedure CalcLineAmountLCY(JobPlanningLine: Record "Job Planning Line", Qty: Decimal): Decimal

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
Qty Decimal

Returns

Type Description
Decimal

PostGenJnlLine

procedure PostGenJnlLine(GenJnlLine: Record "Gen. Journal Line", GLEntry: Record "G/L Entry")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"

PostJobOnPurchaseLine

procedure PostJobOnPurchaseLine(var PurchHeader: Record "Purchase Header", var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", PurchLine: Record "Purchase Line", SourceCode: Code[10])

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchInvHeader Table Microsoft.Purchases.History."Purch. Inv. Header"
PurchCrMemoHdr Table Microsoft.Purchases.History."Purch. Cr. Memo Hdr."
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
SourceCode Code[10]

TestSalesLine

procedure TestSalesLine(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

ChangeGLAccNo

procedure ChangeGLAccNo(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

CheckItemQuantityPurchCredit

procedure CheckItemQuantityPurchCredit(var PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

PostJobPurchaseLines

procedure PostJobPurchaseLines(JobLineFilters: Text, GLEntryNo: Integer)

Parameters

Name Type Description
JobLineFilters Text
GLEntryNo Integer

PostJobSalesLines

procedure PostJobSalesLines(JobLineFilters: Text, GLEntryNo: Integer)

Parameters

Name Type Description
JobLineFilters Text
GLEntryNo Integer

Events

OnAfterPostInvoiceContractLine

[IntegrationEvent(False,False)]
local procedure OnAfterPostInvoiceContractLine(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnAfterPostJobPurchaseLines

[IntegrationEvent(True,False)]
local procedure OnAfterPostJobPurchaseLines(var TempPurchaseLineJob: Record "Purchase Line" temporary, var JobJnlPostLine: Codeunit "Job Jnl.-Post Line", GLEntryNo: Integer)

Parameters

Name Type Description
TempPurchaseLineJob Table Microsoft.Purchases.Document."Purchase Line"
JobJnlPostLine Codeunit Microsoft.Projects.Project.Posting."Job Jnl.-Post Line"
GLEntryNo Integer

OnBeforeCheckItemQuantityPurchCredit

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemQuantityPurchCredit(var PurchaseHeader: Record "Purchase Header", var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeGetBillToCustomer

[IntegrationEvent(False,False)]
local procedure OnBeforeGetBillToCustomer(var JobPlanningLine: Record "Job Planning Line", var Cust: Record Customer, var IsHandled: Boolean)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
Cust Table Microsoft.Sales.Customer.Customer
IsHandled Boolean

OnBeforePostGenJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostGenJnlLine(var JobJournalLine: Record "Job Journal Line", GenJournalLine: Record "Gen. Journal Line", GLEntry: Record "G/L Entry", var IsHandled: Boolean, var JobJnlPostLine: Codeunit "Job Jnl.-Post Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"
IsHandled Boolean
JobJnlPostLine Codeunit Microsoft.Projects.Project.Posting."Job Jnl.-Post Line"

OnBeforeInsertPlLineFromLedgEntry

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

Parameters

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

OnBeforeJobPlanningLineUpdateQtyToInvoice

[IntegrationEvent(False,False)]
local procedure OnBeforeJobPlanningLineUpdateQtyToInvoice(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line", var JobPlanningLineInvoice: Record "Job Planning Line Invoice", JobLedgerEntryNo: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
JobPlanningLineInvoice Table Microsoft.Projects.Project.Planning."Job Planning Line Invoice"
JobLedgerEntryNo Integer

OnBeforePostInvoiceContractLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostInvoiceContractLine(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnPostInvoiceContractLineOnBeforeJobPlanningLineFindFirst

[IntegrationEvent(False,False)]
local procedure OnPostInvoiceContractLineOnBeforeJobPlanningLineFindFirst(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnBeforePostJobOnPurchaseLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostJobOnPurchaseLine(var PurchHeader: Record "Purchase Header", var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", var PurchLine: Record "Purchase Line", var JobJnlLine: Record "Job Journal Line", var IsHandled: Boolean, var TempPurchaseLineJob: Record "Purchase Line", var TempJobJournalLine: Record "Job Journal Line", var Sourcecode: Code[10])

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchInvHeader Table Microsoft.Purchases.History."Purch. Inv. Header"
PurchCrMemoHdr Table Microsoft.Purchases.History."Purch. Cr. Memo Hdr."
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean
TempPurchaseLineJob Table Microsoft.Purchases.Document."Purchase Line"
TempJobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
Sourcecode Code[10]

OnBeforeTestSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestSalesLine(var SalesLine: Record "Sales Line", var Handled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
Handled Boolean

OnBeforeValidateRelationship

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateRelationship(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
IsHandled Boolean

OnAfterJobPlanningLineModify

[IntegrationEvent(False,False)]
local procedure OnAfterJobPlanningLineModify(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnPostGenJnlLineOnAfterTransferToJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostGenJnlLineOnAfterTransferToJnlLine(var JobJnlLine: Record "Job Journal Line", GenJnlLine: Record "Gen. Journal Line", var JobJnlPostLine: Codeunit "Job Jnl.-Post Line")

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
JobJnlPostLine Codeunit Microsoft.Projects.Project.Posting."Job Jnl.-Post Line"

OnPostInvoiceContractLineBeforeCheckJobLine

[IntegrationEvent(False,False)]
local procedure OnPostInvoiceContractLineBeforeCheckJobLine(SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line", var JobLineChecked: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
JobLineChecked Boolean

OnPostInvoiceContractLineOnBeforeCheckBillToCustomer

[IntegrationEvent(False,False)]
local procedure OnPostInvoiceContractLineOnBeforeCheckBillToCustomer(SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
IsHandled Boolean

OnPostJobPurchaseLinesOnAfterJobJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnPostJobPurchaseLinesOnAfterJobJnlPostLine(var TempJobJournalLine: Record "Job Journal Line" temporary, TempJobPurchaseLine: Record "Purchase Line" temporary)

Parameters

Name Type Description
TempJobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
TempJobPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnPostJobPurchaseLinesOnBeforeJobJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnPostJobPurchaseLinesOnBeforeJobJnlPostLine(var TempJobJournalLine: Record "Job Journal Line" temporary, TempJobPurchaseLine: Record "Purchase Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TempJobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
TempJobPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnPostJobSalesLinesOnBeforeJobJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnPostJobSalesLinesOnBeforeJobJnlPostLine(var TempJobJournalLine: Record "Job Journal Line" temporary, var TempJobSalesLine: Record "Sales Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TempJobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
TempJobSalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnPostJobOnPurchaseLineOnAfterCalcShouldSkipLine

[IntegrationEvent(False,False)]
local procedure OnPostJobOnPurchaseLineOnAfterCalcShouldSkipLine(PurchaseLine: Record "Purchase Line", var ShouldSkipLine: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ShouldSkipLine Boolean

OnPostJobOnPurchaseLineOnAfterJobTransferLineFromPurchaseLineToJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostJobOnPurchaseLineOnAfterJobTransferLineFromPurchaseLineToJnlLine(var PurchHeader: Record "Purchase Header", var PurchInvHeader: Record "Purch. Inv. Header", var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.", PurchLine: Record "Purchase Line", var JobJnlLine: Record "Job Journal Line")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchInvHeader Table Microsoft.Purchases.History."Purch. Inv. Header"
PurchCrMemoHdr Table Microsoft.Purchases.History."Purch. Cr. Memo Hdr."
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnValidateRelationshipOnBeforeCheckLineDiscount

[IntegrationEvent(False,False)]
local procedure OnValidateRelationshipOnBeforeCheckLineDiscount(var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
IsHandled Boolean

OnBeforeCheckCurrency

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckCurrency(Job: Record Job, SalesHeader: Record "Sales Header", JobPlanningLine: Record "Job Planning Line", var IsHandled: Boolean)

Parameters

Name Type Description
Job Table Microsoft.Projects.Project.Job.Job
SalesHeader Table Microsoft.Sales.Document."Sales Header"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
IsHandled Boolean

OnPostGenJnlLineOnBeforeGenJnlCheck

[IntegrationEvent(True,False)]
local procedure OnPostGenJnlLineOnBeforeGenJnlCheck(var JobJournalLine: Record "Job Journal Line", GenJournalLine: Record "Gen. Journal Line", GLEntry: Record "G/L Entry", var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
GLEntry Table Microsoft.Finance.GeneralLedger.Ledger."G/L Entry"
IsHandled Boolean

OnPostPlanningLineOnBeforeJobPlanningLineInsert

[IntegrationEvent(False,False)]
local procedure OnPostPlanningLineOnBeforeJobPlanningLineInsert(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnBeforePostPlanningLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostPlanningLine(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnPostInvoiceContractLineOnBeforePostJobOnSalesLine

[IntegrationEvent(False,False)]
local procedure OnPostInvoiceContractLineOnBeforePostJobOnSalesLine(JobPlanningLine: Record "Job Planning Line", JobPlanningLineInvoice: Record "Job Planning Line Invoice", SalesHeader: Record "Sales Header", SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
JobPlanningLineInvoice Table Microsoft.Projects.Project.Planning."Job Planning Line Invoice"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnAfterInsertPlLineFromLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterInsertPlLineFromLedgEntry(JobLedgerEntry: Record "Job Ledger Entry", var JobPlanningLine: Record "Job Planning Line")

Parameters

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

OnValidateRelationshipOnUnitCostLCYDifferenceError

[IntegrationEvent(True,False)]
local procedure OnValidateRelationshipOnUnitCostLCYDifferenceError(var SalesLine: Record "Sales Line", var JobPlanningLine: Record "Job Planning Line", var UnitCostLCYDifferenceExists: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
UnitCostLCYDifferenceExists Boolean

See also