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 10 days ago
    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
    ------------------------------
    Conference-AXUG_200x200


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