D365 Finance & Operations and Dynamics AX Forum

Unable to use New Number sequence to handle Project ON-Account Invoices

  • 1.  Unable to use New Number sequence to handle Project ON-Account Invoices

    Posted Feb 12, 2020 07:45 AM
    Hi,

    I am using D365 F&O.
    I have created a new Number sequence to handle Project On-Account Invoices.
    However the system is still using the regular project invoice number sequence when an on-account invoice is posted.

    This is a class I used in my VS Project:

    class NumberSequenceProject_packet extends NumberSeqModuleProject
    {
    public void loadModule_Extension()
    {
    NumberSeqDatatype datatype = NumberSeqDatatype::construct();

    datatype.parmDatatypeId(extendedTypeNum(ProjOnAccInvoiceId));
    datatype.parmReferenceHelp("On Account Invoice Id");
    datatype.parmWizardIsContinuous(false);
    datatype.parmWizardIsManual(NoYes::No);
    datatype.parmWizardIsChangeDownAllowed(NoYes::No);
    datatype.parmWizardIsChangeUpAllowed(NoYes::No);
    datatype.parmWizardHighest(999999);
    datatype.parmIsGroupEnabled(NoYes::Yes);
    datatype.parmSortField(4);
    datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);
    this.create(datatype);
    }

    }
    After generating the number sequences through Organization Administration-->Number sequences-->Generate , I successfully created it:

    However when I create an On Account Transaction (Projects-->Manage-->On Account Transactions)
    and then select the on account on an invoice proposal, and post it, the system will use the regular Project Invoice number sequence instead of the "on account invoice" number sequence I created.

    The following is a picture of the invoice proposal (Project-->Manage--New-->Invoice proposal), prior to posting invoice:
    I appreciate any help...

    Thanks,

    Jose

    ------------------------------
    Jose Nunez
    System Analyst
    Phillips Corporation
    Hanover MD
    ------------------------------
    The first step toward cloud success. - Migrate from AX to D365 with expert guidance from Microsoft. I'm Ready


If you've found this thread useful, dive deeper into User Group community content by role