how to create two number sequences

与世无争的帅哥 提交于 2019-12-11 16:23:06

问题


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:


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?



来源:https://stackoverflow.com/questions/20992316/how-to-create-two-number-sequences

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!