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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Add Fiscal Year Number to existing journal voucher Number Sequence

(0) ShareShare
ReportReport
Posted on by 916

I want to customize existing Number sequence by adding Fiscal year number to it. By default , the type Company and fiscal calendar period  give us somthing like this USMF-Mar-#########  , it based on the shortName of period

First of all ,i edit all shortName of year 2015 and 2016 and i create the new number sequence in Organization administration>Common>Number sequence as

Number sequence code      Name           Smallest Largest              Format
Test1                                   Test12015    1              999999999        USMF-2015-#########
Test1                                   Test12016   1              999999999         USMF-2016-#########

Then on the Accounts payable>Invoice >invoice journal : i create the new journal then i clicked on the line button i have voucher number sequence created automatically  as : USMF-2015-000000002

So i 'm looking how can i update this number sequence to be automatically use the current year.

I know how to make a number sequence  but I am not able to do it for voucher number as I am not able to find voucher edt in the loadModule method inside NumberSeqModuleLedger class.

Can any body guide me where to find the edt in loadModule()? In which class can I add my specific code?

On the Accounts payable>Invoice >invoice journal > lines  we have field Date , so i want to customize the existing voucher Number sequence by adding the year of this field to the existing number seq?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at

    The code you are looking for is found in class NumberSeqModuleVendor method loadModule.

        datatype.parmDatatypeId(extendedTypeNum(PurchInvoiceVoucher));
        datatype.parmReferenceHelp(literalStr("@SYS53962"));
        datatype.parmDatatypeSameAsId(extendedTypeNum(PurchInternalInvoiceId));
        datatype.parmWizardIsContinuous(true);
        datatype.parmWizardIsManual(NoYes::No);
        datatype.parmWizardIsChangeDownAllowed(NoYes::No);
        datatype.parmWizardIsChangeUpAllowed(NoYes::No);
        datatype.parmWizardLowest(110000000);
        datatype.parmWizardHighest(119999999);
        datatype.parmIsGroupEnabled(NoYes::Yes);
        datatype.parmSortField(13);


  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at

    Sorry, that code relates probably to Purchase order invoicing.

    The voucher number sequences for journals are found on the Journal names themselves.  Look under General ledger, Setup, Journals, Journal names, for the field Voucher series.

  • ALAhmed Profile Picture
    916 on at

    Yes , After creating the new number seq " Test1 " ,i fil the field Voucher series to Test1 , but i don't know how can i edit the number seq to get current year.                              

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans