how to create two number sequences

1.1k views Asked by At

Can we create Purchase order Number Sequence with the division capture for Local and Foreign purchases?

Can we create two number sequence at a time in AX 2012 ?

1

There are 1 answers

3
Jan B. Kjeldsen On

Yes you can.

Not knowing anything about your version or what you have done or tried, I will try guessing you are using AX 2012.

Then go looking in \Classes\CustPostInvoice\run on how they set the invoiceId variable.

    if (countryRegion_LTLV)
    {
        [invoiceId, voucher] = this.getNumAndVoucher_W(numberSeq);
    }
    else
    {
        [invoiceId, voucher] = numberSeq.numAndVoucher();
    }

It even looks more ugly, but the point is, use two different number sequences, then use an if to choose the right one.

Maybe you should also read about setting up a new number sequence?