RE: Creating Item Journal in AL
Bilal Rai,
Thank you so much for your response.
The below code cannot append the next document number while my Journal Batch name 'Default' has a number series attached to it. On the normal Item Journal, the next Document number is defaulted but the code can't. Sorry, how can I use SetupNewLine function to achieve the same.
If ItmJnlBatch."No. Series" <> '' then begin
Clear(NoSeriesMgt);
ItmJnl."Document No." := NoSeriesMgt.TryGetNextNo(ItmJnlBatch."No. Series",WorkDate());
End;
Regards,
RomRyan