• Resolved Davi91

    (@davi91)


    Hey, we had an issue with some invoice numbers that were skipped for no reason. We can’t skip any invoice number because law requirements, so this is quite important.

    I have selected the “Show Invoice Number” instead “Show Order Number” so it should work.

    I did activate the Invoice Number Logs and I found this:

    2024-04-12T10:01:38+00:00 Error The method invoice_number() is deprecated since version 3.7.3, please use the method number() instead.
    2024-04-12T10:01:39+00:00 Error The method invoice_date() is deprecated since version 3.7.3, please use the method date() instead.
    2024-04-12T10:03:24+00:00 Error The method invoice_number() is deprecated since version 3.7.3, please use the method number() instead.
    2024-04-12T10:03:24+00:00 Error The method invoice_date() is deprecated since version 3.7.3, please use the method date() instead.
    2024-04-12T10:06:21+00:00 Error The method invoice_number() is deprecated since version 3.7.3, please use the method number() instead.
    2024-04-12T10:06:21+00:00 Error The method invoice_date() is deprecated since version 3.7.3, please use the method date() instead.
    2024-04-12T10:06:24+00:00 Error The method invoice_number() is deprecated since version 3.7.3, please use the method number() instead.
    2024-04-12T10:06:24+00:00 Error The method invoice_date() is deprecated since version 3.7.3, please use the method date() instead.
    2024-04-12T10:06:44+00:00 Error The method invoice_number() is deprecated since version 3.7.3, please use the method number() instead.
    2024-04-12T10:06:44+00:00 Error The method invoice_date() is deprecated since version 3.7.3, please use the method date() instead.

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

    (@yordansoares)

    Hi @davi91,

    Could you please check which template you have selected under WooCommerce?> PDF Invoices?> General?> Choose a template?

    Thread Starter Davi91

    (@davi91)

    I was using maybe a wrong copy? I only have these two:

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for sharing that screenshot, @davi91:

    It seems that you are using a custom PDF template. Please note that we do not provide free support for?custom PDF templates. Even if you have a license for either?Professional extension?or?Premium Templates, we only offer help for this as a custom job for an extra fee, since this is an advanced customization which involves more time and work.

    That said, instead of a custom PDF template, you could try to apply your customizations using the action hooks and?filter hooks we offer (both articles show code examples). If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    In brief, if you have a child theme, you can add code snippets in its functions.php file: don’t add code snippets to the functions.php file from your parent theme, because you may lose your customizations after updating your parent theme! Another way to add code snippets, that is safer in my humble opinion, is to use the Code Snippets plugin: This plugin stores the code snippets in your database, so you don’t have to worry about losing your customizations after updating your plugins or theme ??

    Hi Guys.

    Same thing for me : all invoices numbers are most of the time correctly generated, but there’s one missing last month and accounting is complaining about it.

    I’ve got no customization running on any template.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @loeilrot,

    My apologies for the late reply!

    If you are still experiencing this issue, please create a new topic to keep the forum organized, since yours seems to be a different case.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invoice Number Skipped’ is closed to new replies.