Search This Blog

Thursday, September 8, 2011

Get NumberSequence Next Num using X++

static void krishh_getNumSeqNum(Args _args)
{
    NumberSeq   numberSeq = NumberSeq::newGetNumFromCode(SalesParameters::numRefInvoiceId().NumberSequence, true, true);
    int         ret;
    str         num;
    ;
    num = numberSeq.num();
    ret = strlen(num);
    numberSeq.abort();
    info(num);
    info(int2str(ret));
}

No comments:

Post a Comment

Thanks for visiting my blog,
I will reply for your comment within 48 hours.

Thanks,
krishna.