...
EXIT(TRUE);
EXIT(FALSE);
END;
BEGIN
END.
}
}
...
...
EXIT(TRUE);
EXIT(FALSE);
END;
// Add the following lines.
LOCAL PROCEDURE CreateDimFromILE@1100();
VAR
LedgEntryDim@1001 : Record 355;
JnlLineDim@1003 : Record 356;
LedgEntryDim1@1170000000 : Record 355;
DimMgt@1004 : Codeunit 408;
BEGIN
IF ("Line No." <> 0) AND ("Value Entry Type" = "Value Entry Type"::Revaluation) THEN BEGIN
JnlLineDim.SETRANGE("Table ID",DATABASE::"Item Journal Line");
JnlLineDim.SETRANGE("Journal Template Name","Journal Template Name");
JnlLineDim.SETRANGE("Journal Batch Name","Journal Batch Name");
JnlLineDim.SETRANGE("Journal Line No.","Line No.");
JnlLineDim.DELETEALL;
"Shortcut Dimension 1 Code" := '';
"Shortcut Dimension 2 Code" := '';
IF "Applies-to Entry" <> 0 THEN BEGIN
ReadGLSetup;
LedgEntryDim.SETRANGE("Table ID",DATABASE::"Item Ledger Entry");
LedgEntryDim.SETRANGE("Entry No.","Applies-to Entry");
DimMgt.MoveLedgEntryDimToJnlLineDim(
LedgEntryDim,JnlLineDim,DATABASE::"Item Journal Line",
"Journal Template Name","Journal Batch Name","Line No.",0);
JnlLineDim.SETCURRENTKEY("Dimension Code","Dimension Value Code");
JnlLineDim.SETRANGE("Dimension Code",GLSetup."Global Dimension 1 Code");
IF JnlLineDim.FINDFIRST THEN
"Shortcut Dimension 1 Code" := JnlLineDim."Dimension Value Code";
JnlLineDim.SETRANGE("Dimension Code",GLSetup."Global Dimension 2 Code");
IF JnlLineDim.FINDFIRST THEN
"Shortcut Dimension 2 Code" := JnlLineDim."Dimension Value Code";
END;
END;
END;
// End of the lines.
BEGIN
END.
}
}
...