• Resolved danilodlr

    (@danilodlr)


    On document settings i only have the pdf enabled for completed/partial-send orders and the number of the invoice is not the correct, for example:
    I have a order day 10/08/2022 with the invoice number 988 and another one day 11/08/2022 with the number 985, some new orders are adding +1 to the invoice number correctly, but other no.

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

    (@yordansoares)

    Hi @danilodlr,

    Could you please tell me which option you have selected under?WooCommerce > PDF Invoices > Documents > Invoice > Display invoice number?

    If is?Order number, our recommendation is to change it to?Invoice number. Since in most European countries there’s a hard requirement for invoice numbers to be sequential without any gaps, to use the invoice numbers in the sequence (keep them separated) is the best option. If you use the order number as invoice number there may be gaps, since the orders are numbered in the main WordPress post numbering system used by posts, pages, images, orders, coupons, products, etc. So if you create a new product between when two orders are placed, and upload an image for that product too, the order number is not sequential (if the first order was #100, the product would be #101, the image #102 and the next order #103). See?Invoice numbers explained.

    Thread Starter danilodlr

    (@danilodlr)

    hi @yordansoares
    i have invoice number selected.
    we have a old website with a older version of this plugin and i check all the settings to match the same as before, because the old website dont have this problem, new completed orders have +1 on the invoice number without gaps.

    Thread Starter danilodlr

    (@danilodlr)

    so there is any way i can assign a invoice number to only completed/partial-send so any new order can be the +1 number of the last completed/partial-send order?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Then, I wonder if this is caused by PayPal. Do you use PayPal in your store?

    There is a known WooCommerce issue with a specific PayPal configuration, and it affects more than just invoice creation. PayPal has two different methods for confirming payment of an order (name “PDT” and “IPN”). If you have enabled both of them, PayPal sends?two?notifications to WooCommerce at the same time. This results in what is called a “race condition”: the processes start in parallel (not being able to see the other yet), doing the same tasks. The client receives two emails for their order (each with an invoice), stock gets reduced twice, and other processes might be duplicated as well. Because an order can only have one invoice, only one of them ‘survives’ after the processes have finished.

    IPN and PDT serve the exact same purpose, so you only need one of them. Two options (choose one):

    1. To disable PDT, clear the “PayPal identity token” in the PayPal gateway settings in WooCommerce.
    2. To disable IPN you will need to go to your PayPal merchant backend (where you can also disable PDT by the way).

    Let us know if this indeed solves your issue!

    Thread Starter danilodlr

    (@danilodlr)

    in woocommerce, payments, paypal i see a bunch of settings with 3 tabs (paypal payment, paypal cards process, webhocks), where is exactly that option?

    Plugin Contributor Yordan Soares

    (@yordansoares)

    The easiest way to fix this is to find this setting and remove the token there (the 1st option from the 2 I left above):

    PayPal PDT - Payment Data Transfer

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Before performing the action above, could you please use the?Number Tools?extension to see the invoice logs?

    Please follow the steps below to do so:

    1. Download, install and active the last release of?Number tools: Download
    2. Go to?WooCommerce > PDF Invoices > Number tools > Document Numbers
    3. Now you will be able to track the invoice number sequence by date and order number.

    Please send a screenshot with your latest invoice numbers to try to understand what’s happening.

    Thread Starter danilodlr

    (@danilodlr)

    Hi again @yordansoares in the plugin the numbers seems alright, only missing the last order (18h ago).
    the problem here is that the administrative part of the company sees that an order in woocommerce have lower invoice number than another further down the list, and that causes them confusion, you can see that some order numbers are not in order like the invoice number.
    IMG

    • This reply was modified 2 years, 6 months ago by danilodlr.
    • This reply was modified 2 years, 6 months ago by danilodlr.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for sending that screenshot, and explaining better what’s the “issue”, @danilodlr!

    Invoice numbers are assigned based on when the document is generated and this does not always match the sequence in which orders arrive (unless you generate an invoice at order creation, regardless of whether you have received payment or not, e.g. by sending the document to the administrator).

    For example:
    Let’s say that your next invoice number is I-101 and you only generate an invoice when the order changes to Completed status. If you receive three orders in a row, with the order numbers 100, 101 and 102, but the order status changes to Completed in a difference sequence: 102, 100, 101, the invoice numbers would look like this:

    Order: 100 = Invoice: I-102 (second to change to Completed)
    Order: 101 = Invoice: I-103 (third to change to Completed)
    Order: 102 = Invoice: I-101 (first to change to Completed)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PDF number not tidy’ is closed to new replies.