Search Results for 'reset invoice number'

Viewing 10 results - 1 through 10 (of 10 total)
  • Author
    Search Results
  • #2438

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #2434

    wci
    Buyer

    Dear support team,

    I am already upgrading my geodirectory payment manager together with invoicing to the latest version. Now I want to start from scretch with invoice numbering. I’ve also truncated the corresponding DB tables “geodir_invoice” and “wpinv_subscriptions” but after new issuing of invoices then the invoice numbers are not counting from 0.

    Please advise what to do to enable a new invoice numbering to be continued starting with 1. I have already tried to follow these instructions but without succuss so far

    https://wpinvoicing.com/docs/category/getting-started/
    https://wpinvoicing.com/support/search/?bbp_search=reset+invoice+number

    I would appreciate if you could give me step by step instructions to proceed

    Best, Alex

    #2364

    In reply to: Invoice Number


    Patrik
    Moderator
    Post count: 1971

    Hi,

    I have done that on your given site.

    It’s a bit technical. Need to run the following code ONCE by putting into functions.php file of your currently active theme:

    
    
    
    add_action('wp_head', 'wp_head_cb');
    function wp_head_cb(){
        wpinv_update_option( 'invoice_sequence_start', 1 );
        delete_option( 'wpinv_last_invoice_number' );
    }
    

    This will reset the sequence to start from 1 and delete the last invoice number which you may have deleted after testing. Please note: You should run this code just once so after you put this code in the file you have to refresh the home page of your theme and then remove the code. Let me know if this works for you or not.

    Regards,
    Patrik

    #1294

    In reply to: Reset invoice number


    Patrik
    Moderator
    Post count: 1971

    Hi,

    There is no such functionality currently to reset invoice number but if this is the required thing for you then you can try following first on your staging(strictly recommended) and if it works fine then on live.

    You need to enable WPI>Settings>Misc>Sequential Invoice Numbers first. The setting Sequential Starting Number field value will work only if it is greater than the last invoice number but in your case you want to start from 1 which will be not greater than last invoice number. So just set value 1 there and as we are storing last invoice number value in options table you can either change it directly from the Database or by running the

    update_option( 'wpinv_last_invoice_number', 0 );

    function single time. This will reset the invoice number to 0.

    If you want us to update the things then let me know the admin and Cpanel details in private reply and we will look into this.

    Let me know if you have any questions.

    Regards,
    Patrik

    #1291

    In reply to: Reset invoice number


    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #1286
    Resolved

    Topic: Reset invoice number

    Hello wpinvoicing team

    Any form of Reset invoice number? Finish making tests.

    I need the same as in this post, but no solution is given.

    https://wpinvoicing.com/support/topic/reset-invoice-number-or-manual-setting/

    In my country I need to restart every year

    #1070

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #1068

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    The invoice count setting is not designed to be reset each year, or to be reset for a lower number once invoices have been created.

    Nevertheless, I will ask my colleagues about resetting the number.

    Thanks for your patience while we look into it.

    #1066

    Javier Donoso
    Buyer
    Post count: 33

    I have deleted all. I had some because I was testing with the previous version, but, as I tell you I have deleted all of them in the invoice menu.

    Is there any way to reset this number? I don´t want that my first number is 3495 and I want to reset number each year. Any idea how can I do this?

    #1043

    Hello. I have invoicing plugin 0.01 version. I know therar are new versions but we are just about to launch and I have fear of upgrading and having to review again for bugs, translation problems and so on.

    Id there any way to set the invoice number counter on 0, or 100 or the number I want to start? Could you tell me in what part of the code could I change it if it´s possible?

    This would be right for us if we can change the code and in the future we will test the upgraded version in an stage area.

    Thanks in advance

Viewing 10 results - 1 through 10 (of 10 total)