web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

'Invoice Register' via alternative form - Voucher number allocation

(0) ShareShare
ReportReport
Posted on by 55

Hi,

 I am attempting to create journal vouchers for the 'Invoice  Register' via a newly written form, but I am getting problems with correctly allocating the voucher numbers from the number sequence.  

When I can get them allocated, once the new form exits, they are not retained, but are released back into the number sequence list for re-use. 

I am calling the same classes as the standard form ( LedgerJournalTransInvoiceRegister) in equivalent places, but they are not having the required effect

*This post is locked for comments

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    when you use Nubersequences you have to add the used method

     

  • MohammedRasheed Profile Picture
    1,405 on at

    Hi David,


    Just to expand on dicks answer.

    In Dynamics AX, if you use a continuous number sequence (which most voucher sequences are), then ax holds the sequence and transaction in a table called NumberSequenceList (check this table out, it would hold the vouchers you used so far) and when the numberSequence is marked as use, ax deletes the record from this table.

    if i remember correctly invoiceJournals use the class InvoiceJournalEngine .. which in turn uses the NumberSeqFormhandler to assign and mark number sequences... try searching (find) for used or abort on the class.

    coming back to your question.. i dont know how designed the form, but if you are assigning the numbersequence in your code (and not using the formhandler) then please make sure that you call NumberSeq.used() in the end.

    hope this helps.

    let us know if you have any more questions.

    regards,

    Mohammed Rasheed
    www.dynamic-ax.co.uk

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans