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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Voucher numbers in connection with balance

(0) ShareShare
ReportReport
Posted on by 457

Hello all,

I have setup a journal name and set the New Voucher rule to 'In connection with balance' expecting to have a new voucher number each time the voucher is balanced.

This however is not happening, the voucher number does not change.

The number sequence is set to continuous and it does assign a new number every time a new journal is created.

Is there something I might be missing here?

Thank you for your input.

Alex.

ax_2D00_voucherseries.png

ax_2D00_voucherseries1.png

*This post is locked for comments

I have the same question (0)
  • Brandon Wiese Profile Picture
    17,788 on at
    RE: Voucher numbers in connection with balance

    Duplicate post.

  • Brandon Wiese Profile Picture
    17,788 on at
    RE: Voucher numbers in connection with balance

    Can you show us a screenshot of a few lines in a journal where it doesn't change the voucher?

  • alexd Profile Picture
    457 on at
    RE: Voucher numbers in connection with balance

    Hi Brandon,

    Here the first line is balanced, so I was expecting the second line to give me a different voucher number, but it continues with the same number.

    0407.ax_2D00_voucherseries2.png

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Voucher numbers in connection with balance

    Hi are you sure that the parameter "number allocation at posting" is not and has never been active for your journal? Of you complete the two journal lines can you post the journal? Can you check your number sequence whether some numbers got stuck and run the cleanup?

    Ludwig

  • alexd Profile Picture
    457 on at
    RE: Voucher numbers in connection with balance

    Hi Ludwig,

    I am sure is not active, but I am not sure that it has never been active for that journal, although I don't think it's likely (I've been here just for a couple of months).

    If I complete the lines I cannot post the journal, as I have 2 customer lines on one voucher, AX throws an error saying it's not possible.

    I checked the number sequence and it is fine, it's a new number sequence. I have created new journals for this journal name and they do assign the next available number in the sequence.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Voucher numbers in connection with balance

    I see. Have you already tried if restarting your AOS helps? And what if you setup a completely new journal and number sequence? Does this fix your issue or are all journals affected by this? Ludwig

  • Brandon Wiese Profile Picture
    17,788 on at
    RE: Voucher numbers in connection with balance

    Please put a breakpoint in class LedgerJournalEngine method takeNewVoucher() on the first line, then step through this method and let us know why it makes the decision it makes.  In particular, the value of the voucherAmountBalances variable is of interest.

  • alexd Profile Picture
    457 on at
    RE: Voucher numbers in connection with balance

    Yes, the AOS was restarted today and I have created a new journal name and number sequence.

    All Daily journals are, but oddly a have Vendor Invoice Recording journal type seems to be working fine... that one does change voucher numbers based on the balance.

  • Brandon Wiese Profile Picture
    17,788 on at
    RE: Voucher numbers in connection with balance

    The currency code seems critical in determining if the voucher is in balance.  I believe if you use Account type of Customer, the currency code is copied from that customer record.  What is the currency code on the screenshot you posted earlier, and what is the Accounting currency of the Ledger for that legal entity?  (crossing fingers they're the same)

  • alexd Profile Picture
    457 on at
    RE: Voucher numbers in connection with balance

    Hi Brandon, they aren't the same but I tried in a different company/voucher that were both in USD and the effect was the same.

    I will take your advice on the break point on the LedgerJournalEngine, but I have to wait for my more technical colleagues as I have no experience in debugging, although it would make a very good first experience :)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans