1. Create a new number sequence in Organization administration ->Common->NumberSequence->Number sequence
2. use below code to generate a new number sequence.
NumberSeq num;
num = NumberSeq::newGetNumFromCode(<NumberSequenceCode>);
num.used();
info(num.num());
No comments:
Post a Comment