You have the table customer and the option sent address for customer.
You have a field code, where you can fill in the code. But now I want to have automatic numbering. for code.
But in the table: Ship-to Address there is no field: [No_ Series] in that table.
So I have this for automatic numbering:
WITH CustAddress DO BEGIN
CustAddress := Rec;
RMSetup.GET;
RMSetup.TESTFIELD(“Code”);
IF NoSeriesMgt.SelectSeries(RMSetup.Code,OldCustomerAddress.Code,“No. Series”) THEN BEGIN
HI Niels ,
We haven’t understood your request/requirements ? Can you be clear …
i think you were talking about Shipping Fasttab in Sales Order page But If you talking about "Ship to Code " Option
Then i would say it’s an Alternate Address which will be chosen if salesperson asked to ship to separate address other than
Default.
So you can’t make automatic or anything…
I just want to have automatic numbering by code. So a user can fill in a code number. But now I want to have Automatic numbering, like abc1, abc2, abc3…etc if you press by code TAB
WITH CustAddress DO BEGIN
CustAddress := Rec;
RMSetup2.GET;
RMSetup2.TESTFIELD(“Example Nos.”);
IF NoSeriesMgt.SelectSeries(RMSetup2.“Example Nos.”,OldCustomerAddress.“No. Series”,“No. Series”) THEN BEGIN
// RMSetup.GET;
RMSetup2.TESTFIELD(“Example Nos.”);
NoSeriesMgt.SetSeries(Code);
Rec := CustAddress;
EXIT(TRUE);
END;
END;
WITH CustAddress DO BEGIN
CustAddress := Rec;
RMSetup2.GET;
RMSetup2.TESTFIELD(“Example Nos.”);
IF NoSeriesMgt.SelectSeries(RMSetup2.“Example Nos.”,OldCustomerAddress.“No. Series”,“No. Series”) THEN BEGIN
RMSetup.GET;
RMSetup2.TESTFIELD(“Example Nos.”);
NoSeriesMgt.SetSeries(Code);
Rec := CustAddress;
EXIT(TRUE);
END;
END;