问题
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