user3172646
user3172646

Reputation: 11

how to create two number sequences

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 ?

Upvotes: 0

Views: 1164

Answers (1)

Jan B. Kjeldsen
Jan B. Kjeldsen

Reputation: 18051

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?

Upvotes: 1

Related Questions