While posting statement getting error No. Series Code " does not exist. I have setup the Round Post. No. Series for the specific store. Can anyone help me ?
IF ModifySeries OR (LastNoSeriesLine."Series Code" = '') THEN BEGIN
IF ModifySeries THEN
NoSeriesLine.LOCKTABLE; NoSeries.GET(NoSeriesCode);
SetNoSeriesLineFilter(NoSeriesLine,NoSeriesCode,SeriesDate);
IF NOT NoSeriesLine.FIND('-') THEN BEGIN
NoSeriesLine.SETRANGE("Starting Date");
IF NoSeriesLine.FIND('-') THEN
ERROR(
Text004,
NoSeriesCode,SeriesDate);
ERROR(
Text005,
NoSeriesCode);
END;
END ELSE
NoSeriesLine := LastNoSeriesLine;
You need to setup the series for something else (that seems to be empty). Keep pressing F8 in the debugger and you will find where it's calling the function for the no. series and that way find what number series is trying to use (so what field to setup).
I'm fairly certain that the no. series that you have setup as Statement No. Series on your store card doesn't exist in the database you are posting to.
Sometimes this happens when you setup Store specific no. series, but only post in the head office. make sure all of the no. series are defined in teh head office database.
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
DEBBUGER STOPS ON THE BOLD LINE
IF ModifySeries OR (LastNoSeriesLine."Series Code" = '') THEN BEGIN
IF ModifySeries THEN
NoSeriesLine.LOCKTABLE;
NoSeries.GET(NoSeriesCode);
SetNoSeriesLineFilter(NoSeriesLine,NoSeriesCode,SeriesDate);
IF NOT NoSeriesLine.FIND('-') THEN BEGIN
NoSeriesLine.SETRANGE("Starting Date");
IF NoSeriesLine.FIND('-') THEN
ERROR(
Text004,
NoSeriesCode,SeriesDate);
ERROR(
Text005,
NoSeriesCode);
END;
END ELSE
NoSeriesLine := LastNoSeriesLine;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Sometimes this happens when you setup Store specific no. series, but only post in the head office. make sure all of the no. series are defined in teh head office database.