• Resolved Olaf Lederer

    (@finalwebsites)


    Hi,

    my customer moved his webshop to WooCommerce and is using your PDF invoice plugin. The starting invoice number option works perfectly if I enter a value of 1 or 112. But the last number used on the old webshop was 20211975210. Whenever I use that number it doesn’t work. There is no automatic generated invoice number.
    Is this number to big?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @finalwebsites,

    This is because the invoice number you have set exceeds the maximum value signed by SQL for int (2147483647). See Integer Types. That is, this is not something our plugin controlled, but the database itself.

    However, you can overcome this limitation by using the first 4 digits, that seems to be the year, as prefix using the [invoice_year] placeholder, under WooCommerce > PDF Invoices > Documents > Invoice > Number format > Prefix. Then, you can set your next invoice number to 1975210 instead of 20211975210.

    Thread Starter Olaf Lederer

    (@finalwebsites)

    Hi Yordan,
    thank you, that makes sense.

    you can overcome this limitation by using the first 4 digits, that seems to be the year, as prefix using the [invoice_year] placeholder,

    I have used the prefix before and it looks like that I need to use the English version to notify this options in the first place 🙂

    It’s solved now, thanks

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to know that it worked for you!

    By the way, when you say you need to use English to notice these options, does the description with additional information not appear in your language? If so, what language do you refer to?

    Thread Starter Olaf Lederer

    (@finalwebsites)

    By the way, when you say you need to use English to notice these options, does the description with additional information not appear in your language?

    Yes it’s translated into Dutch, but it’s easier for me to recognize instructions in English language. It might be a bit strange because I talk Dutch the whole day, but my development work documented in English language.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Oh, that’s interesting: thanks for your feedback! 🙂

    By the way, if you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

    Thread Starter Olaf Lederer

    (@finalwebsites)

    By the way, if you don’t mind and have the time, do you think you could leave us a review?

    Thanks for the reminder 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problem with invoice starting number’ is closed to new replies.