...
GenJnlLine.VALIDATE(Amount,GenJnlLine."Source Currency Amount");
GenJnlLine."Source Currency Amount" := 0;
END;
IF GenJnlLine.Amount <> 0 THEN
GenJnlPostLine.RunWithCheck(GenJnlLine,TempJnlLineDim);
// Delete the following lines.
END ELSE BEGIN
DimMgt.CopyJnlLineDimToJnlLineDim(TempJnlLineDim,JnlLineDim);
GenJnlLine.INSERT;
END;
NoSeriesCode := NoSeriesMgt1.GetNextNo(GenJnlBatch."No. Series",EndDateReq,FALSE);
NoSeriesLine.SETCURRENTKEY("Series Code","Starting Date");
NoSeriesLine.SETRANGE("Series Code",GenJnlBatch."No. Series");
NoSeriesLine.SETRANGE("Starting Date",0D,EndDateReq);
IF NoSeriesLine.FINDLAST THEN BEGIN
IF DocNo = NoSeriesCode THEN BEGIN
NoSeriesLine."Last No. Used" := DocNo;
NoSeriesLine.MODIFY;
END;
// End of the lines.
END;
END;
LOCAL PROCEDURE CalcSumsInFilter@18();
BEGIN
...
...
GenJnlLine.VALIDATE(Amount,GenJnlLine."Source Currency Amount");
GenJnlLine."Source Currency Amount" := 0;
END;
IF GenJnlLine.Amount <> 0 THEN BEGIN
GenJnlPostLine.RunWithCheck(GenJnlLine,TempJnlLineDim);
// Add the following lines.
IF DocNo = NoSeriesMgt.GetNextNo(GenJnlBatch."No. Series",EndDateReq,FALSE) THEN
NoSeriesMgt.SaveNoSeries;
END;
END ELSE BEGIN
DimMgt.CopyJnlLineDimToJnlLineDim(TempJnlLineDim,JnlLineDim);
GenJnlLine.INSERT;
// End of the lines.
END;
END;
LOCAL PROCEDURE CalcSumsInFilter@18();
BEGIN
...