Hi guys,
I have created a new Number Sequence for AR module and now shows correctly and nicely in AR parameters Tab Number Sequence. May I know what is the best way to check (in X code) that the number sequence is already set up ?
Usually I'm just using it with this command :
numberSeqNewOrder = NumberSeq::newGetNum(CustParameters::numRef_My_OrderNumber());
numberSeqNewOrder.used();
SalesTable.My_OrderNumber = numberSeqNewOrder.num();
This works fine, if the setup has no done actually there is a system error saying "A number sequence has not been set up for the reference Order number in the area Accounts receivable." but I currently I need to check first before it is being retrieved. Is there an existing method for us just to check first, lets say if it is return false, I can use it to not even start my process, because actually those code above is in the middle of some process.
Thanks,