[EventSubscriber(ObjectType::Codeunit, Codeunit::NCCA Cost Jnl.-Trans. Mgt., 'OnAfterCopyFromGLEntry', '', false, false)]
local procedure NCCACostJnlTransMgt_OnAfterCopyFromGLEntry(GLEntry: Record "G/L Entry"; var NCCACostJnlLine: Record "NCCA Cost Jnl. Line")
begin
NCCACostJnlLine."Indiv. Field" := GLEntry."Indiv. Field";
end;
[EventSubscriber(ObjectType::Codeunit, Codeunit::NCCA Cost Jnl.-Trans. Mgt., 'OnCumulateTempCostJnlLine', '', false, false)]
local procedure NCCACostJnlTransMgt_OnCumulateTempCostJnlLine(NCCACostJnlLine: Record "NCCA Cost Jnl. Line"; var TempNCCACostJnlLine: Record "NCCA Cost Jnl. Line" temporary)
begin
TempNCCACostJnlLine."Indiv. Field" := TempNCCACostJnlLine."Indiv. Field" + NCCACostJnlLine."Indiv. Field";
end;
Note
In order for the field to be transferred from the Cost Journal to the Cost Entries, another event must be included. For information on this, please refer to the next section From Cost Journal to Cost Entries.[EventSubscriber(ObjectType::Table, Table::"NCCA Cost Entry", 'OnAfterCopyFromCostJnlLine', '', false, false)]
local procedure NCCACostEntry_OnAfterCopyFromCostJnlLine(var NCCACostEntry: Record "NCCA Cost Entry"; var NCCACostJnlLine: Record "NCCA Cost Jnl. Line")
begin
NCCACostEntry."Indiv. Field" := NCCACostJnlLine."Indiv. Field";
end;
[EventSubscriber(ObjectType::Table, Table::"NCCA Cost Jnl. Line", 'OnAfterCopyFromServAJnlLine', '', false, false)]
local procedure NCCACostJnlLine_OnAfterCopyFromServAJnlLine(var NCCACostJnlLine: Record "NCCA Cost Jnl. Line"; var NCCAServAJnlLine: Record "NCCA Serv. A. Jnl. Line")
begin
NCCACostJnlLine."Indiv. Field" := NCCAServAJnlLine."Indiv. Field";
end;
[EventSubscriber(ObjectType::Table, Table::"NCCA Cost Jnl. Line", 'OnAfterCopyFromAllocJnlLine', '', false, false)]
local procedure NCCACostJnlLine_OnAfterCopyFromAllocJnlLine(var NCCACostJnlLine: Record "NCCA Cost Jnl. Line"; var NCCAAllocJnlLine: Record "NCCA Alloc. Jnl. Line")
begin
NCCACostJnlLine."Indiv. Field" := NCCAAllocJnlLine."Indiv. Field";
end;
[EventSubscriber(ObjectType::Table, Table::"NCCA Cost Budget Entry", 'OnAfterCopyFromCostBudgetJnlLine', '', false, false)]
local procedure NCCACostBudgetEntry_OnAfterCopyFromCostBudgetJnlLine(var NCCACostBudgetEntry: Record "NCCA Cost Budget Entry"; var NCCACostBudgetJnlLine: Record "NCCA Cost Budget Jnl. Line")
begin
NCCACostBudgetEntry."Indiv. Field" := NCCACostBudgetJnlLine."Indiv. Field";
end;
Finmatics Autonomous Accounting Interface for AI-driven document processing tool by Finmatics. More information AppSource |