Codeunit CostJnlManagement

ID 1106
Namespace: Microsoft.CostAccounting.Journal

Properties

Name Value
Permissions TableData "Cost Journal Template" = rimd, TableData "Cost Journal Batch" = rimd

Methods

TemplateSelection

procedure TemplateSelection(var CostJnlLine: Record "Cost Journal Line", var JnlSelected: Boolean)

Parameters

Name Type Description
CostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"
JnlSelected Boolean

TemplateSelectionFromBatch

procedure TemplateSelectionFromBatch(var CostJnlBatch: Record "Cost Journal Batch")

Parameters

Name Type Description
CostJnlBatch Table Microsoft.CostAccounting.Journal."Cost Journal Batch"

OpenJnl

procedure OpenJnl(var CostJnlBatchName: Code[10], var CostJnlLine: Record "Cost Journal Line")

Parameters

Name Type Description
CostJnlBatchName Code[10]
CostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"

OpenJnlBatch

procedure OpenJnlBatch(var CostJnlBatch: Record "Cost Journal Batch")

Parameters

Name Type Description
CostJnlBatch Table Microsoft.CostAccounting.Journal."Cost Journal Batch"

CheckTemplateName

procedure CheckTemplateName(CostJnlTemplateName: Code[10], var CostJnlBatchName: Code[10])

Parameters

Name Type Description
CostJnlTemplateName Code[10]
CostJnlBatchName Code[10]

CheckName

procedure CheckName(CostJnlBatchName: Code[10], var CostJnlLine: Record "Cost Journal Line")

Parameters

Name Type Description
CostJnlBatchName Code[10]
CostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"

SetName

procedure SetName(CostJnlBatchName: Code[10], var CostJnlLine: Record "Cost Journal Line")

Parameters

Name Type Description
CostJnlBatchName Code[10]
CostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"

LookupName

procedure LookupName(var CostJnlBatchName: Code[10], var CostJnlLine: Record "Cost Journal Line")

Parameters

Name Type Description
CostJnlBatchName Code[10]
CostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"

CalcBalance

procedure CalcBalance(var CostJnlLine: Record "Cost Journal Line", LastCostJnlLine: Record "Cost Journal Line", var Balance: Decimal, var TotalBalance: Decimal, var ShowBalance: Boolean, var ShowTotalBalance: Boolean)

Parameters

Name Type Description
CostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"
LastCostJnlLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"
Balance Decimal
TotalBalance Decimal
ShowBalance Boolean
ShowTotalBalance Boolean

Events

OnBeforeTemplateSelection

[IntegrationEvent(False,False)]
local procedure OnBeforeTemplateSelection(var CostJournalLine: Record "Cost Journal Line", var JnlSelected: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
CostJournalLine Table Microsoft.CostAccounting.Journal."Cost Journal Line"
JnlSelected Boolean
IsHandled Boolean

OnBeforeTemplateSelectionFromBatch

[IntegrationEvent(False,False)]
local procedure OnBeforeTemplateSelectionFromBatch(var CostJnlBatch: Record "Cost Journal Batch", var IsHandled: Boolean)

Parameters

Name Type Description
CostJnlBatch Table Microsoft.CostAccounting.Journal."Cost Journal Batch"
IsHandled Boolean

OnBeforeOpenJnlBatch

[IntegrationEvent(False,False)]
local procedure OnBeforeOpenJnlBatch(var CostJournalBatch: Record "Cost Journal Batch", var IsHandled: Boolean)

Parameters

Name Type Description
CostJournalBatch Table Microsoft.CostAccounting.Journal."Cost Journal Batch"
IsHandled Boolean

See also