Fill posting no series Sales Credit Memo

catiamatos1991catiamatos1991 Member Posts: 158
Hi everyone,


I'm trying to fill the "posting no. series" on the Sales Credit Memo because by default it appears empty.
So I want to fill with the series "MRVNC" and I'm trying the code below in "OnValidate" Trigger

kkva2nh2mp77.png


IF "Posting No. Series" <> '' THEN BEGIN
SalesSetup.GET;
TestNoSeries;
NoSeriesMgt.TestSeries(GetPostingNoSeriesCode,"Posting No. Series");
END;

SERIE.SETRANGE(Code,"Posting No. Series");
SERIE.FINDFIRST;
TESTFIELD("Posting No.",'');
Sign In or Register to comment.