Invoice Number

This topic contains 14 replies, has 3 voices, and was last updated by  Patrik 1 year, 10 months ago.

Tagged: 

  • Author
    Posts
  • #2339

    Antonella Gallino
    Buyer
    Post count: 73

    Hello,
    1. I need to restart my Invoice Numeration from the very beginning (1), deleting the first ones, that were just for testing (I has gone live a few days ago).
    How can I do?

    2. May I set invoicing manually, after payment has been successful and listing has been actually published by admin?

    Best,
    Antonella

    #2340

    Guust
    Moderator
    Post count: 29970

    1. Delete all your test invoices.
    Then go to Invoicing > Settings > Misc tab >
    Sequential Invoice Numbers > Yes
    Sequential Starting Number > 1

    2. Payment can only be successful if an invoice was generated as part of the listing submission process.
    Once a payment was successful, you should not modify any invoice generated. At any rate, the invoice number cannot be changed after successful listing submission, regardless of payment.

    Thanks

    #2341

    Antonella Gallino
    Buyer
    Post count: 73

    Hello Guust,
    thanks for your reply, but unfortunately It doesn’t work for me.
    I have cancelled my invoices first, and then deleted forever, so the list is now empty.
    But settings the counter in Settings does not reset.
    Please see attached.

    About 2, ok, I see. But maybe I will open another topic for bank transfer, because my need and trouble is there, in that check-out.

    Best,
    Antonella

    Attachments:
    You must be logged in to view attached files.
    #2345

    Guust
    Moderator
    Post count: 29970

    Did you empty the trash first as well?
    Please post URL and WP admin details in a private reply if we need to have a look.
    Thanks

    #2346

    Antonella Gallino
    Buyer
    Post count: 73
    This reply has been marked as private.
    #2347

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

    Antonella Gallino
    Buyer
    Post count: 73
    This reply has been marked as private.
    #2349

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

    Antonella Gallino
    Buyer
    Post count: 73
    This reply has been marked as private.
    #2351

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Please check now if it is working fine or not and let me know.

    Regards,
    Patrik

    #2352

    Antonella Gallino
    Buyer
    Post count: 73

    Now it works fine, thank you!

    For next time, just in case, how can I solve on my own?

    Thanks,
    Antonella

    #2363

    Antonella Gallino
    Buyer
    Post count: 73

    Hello,
    I have the same problem at the moment, how can I solve it?
    Regards,
    Antonella

    #2364

    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

    #2365

    Antonella Gallino
    Buyer
    Post count: 73

    Ok thank you, it works fine.

    May I suggest to give the possibility to restart numeration directly in Settings?

    Regards,
    Antonella

    #2366

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘Invoice Number’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.