Get No Series

GhizlaneGhizlane Posts: 45Member
Hi all ,
I want to connect a field with No series (Control) created

5vtih6dibhoz.png

hfq18nd8khpf.png

In my code I used codeunit ' NoSeriesManagement ' to get it but It dosent work
lSeriesCodeunit.InitSeries(GetNoSeriesCode, lPlanLine."Quality No.", Today, "No.", lPlanLine."Quality No.");

  procedure GetNoSeriesCode(): Code[30]
    var
        NoSeriesCode: Code[30];
    begin
        CASE lPlanLine."Quality Type" OF
            lplanline."Quality Type"::Plan:
                NoSeriesCode := gSeriesQuality."Order Control";

        end;
    end;

lControlLine."Quality No." := lSeriesCodeunit.GetNextNo(lPlanLine."Quality No.", Today, true);


do you have any idea !!!

Answers

  • TallyHoTallyHo Posts: 223Member
    edited 2019-06-13
    Don't:
    lControlLine."Quality No." := lSeriesCodeunit.GetNextNo(lPlanLine."Quality No.", Today, true);

    Do (in a way):
    NoSeriesCode := 'CONTROL';
    NoSeriesMgt.InitSeries(NoSeriesCode,'',0D,"Quality No.",'');

Sign In or Register to comment.