Notifications
Announcements
No record found.
Hi ,
I am getting this error message :
if (custInvoiceTable.XXXFreeTextId == '') { NumberSeq num = NumberSeq::newGetNum(CustParameters::numRefXXXFreeTextId()); custInvoiceTable.XXXFreeTextId = num.num(); custInvoiceTable.update(); }
Hi Priya,
Can you tell what would be the expected outcome? Do you have setup the number sequence setup as continues and you want to have a continuous number used or do you want to change the setup to non-continuous?
If you want to have continuous number, you have to initiate the NumberSeq class first and call a similar method for drawing a number with an additional parameter which determines the continuous behavior. The parameter is called 'makedecisionlater'. If you can set that parameter to 'yes', then it might work to use continuous number sequences. Before ending the coding, you have to 'finalize' the decision by calling numberSeq.used(). There are various implementations of this pattern in the standard for your reference.
Hello PriyaDutta,
What are you trying to achieve here?
The free text invoice id is filled in once the invoice is posted and this number is automatically assigned by the number sequence in your AR parameters.
Why do you need a continuous number sequence for those transactions?
Can't you simply use a non-continuous number sequence?
Best regards,
Ludwig
Hi,
I have simply added ttsbegin() and ttscommit() before and after the 3 lines of code and the error is gone.
I have tested and it is generating continous number seq for me error free.
Wont this work ?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 451 Most Valuable Professional
André Arnaud de Cal... 428 Super User 2025 Season 2
BillurSamdancioglu 239 Most Valuable Professional