• Resolved MikYF

    (@mikyf)


    Hi!

    Why are the invoice numbers not consecutive? For example the order is 100, 103, 102, 104, 101…

    Regards.

    • This topic was modified 2 years, 12 months ago by MikYF.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Invoice numbers are assigned in the order that the invoices are created. They are always consecutive, but not necessarily in the same sequence as the order numbers. Remember that not all orders get an invoice, and an order placed on day 1 may not get an invoice until day 30, whereas an order placed on day 2 could get an invoice on the same day – all depending on your settings and whether an invoice was generated manually or automatically. More information here: Invoice numbers explained

    Thread Starter MikYF

    (@mikyf)

    I understand. But I have the following configuration:

    1. In Attach to: only checked the “order completed” option.
    2. In Deactivate For: selected “canceled” and “failed”.

    Even so, it generates the non-consecutive invoice numbers, even with several days difference between one order and another.

    What configuration is necessary for the invoice number to be generated consecutively? What do you recomend? In my country it is a tax problem that is not the case.

    Greetings.

    Plugin Contributor Ewout

    (@pomegranate)

    If the invoice is only checked to the ‘completed order’ email, it will not be generated automatically until the order is actually completed. Meanwhile, if a shop manager (you) or a client (depending on your “My Account” settings under Documents > Invoice) generates the invoice for a non-completed order earlier, it will use an invoice numbers. But to be clear: the invoice numbers are still 100% consecutive, but in the order that you generated the invoices (again, independent of the order that the orders were placed!).

    If you want to know how (and when) the invoice was generated, you could enable “log to order notes” on the Status tab. This will tell you (by the logs in the “Order Notes” in the right sidebar of the order details) whether it was indeed an admin or a customer that generated an invoice for an order, and adjust your settings accordingly. You could also disable the invoice generation for all statuses except completed (and maybe refunded), if you really want to block creating the invoice too early.

    Thread Starter MikYF

    (@mikyf)

    As I told you, I already have invoices only activated for completed orders. Still, the system generates non-consecutive invoices. Even if several days have passed since the previous purchase. Plus it even skips numbers.

    https://ibb.co/0rWp2RG

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

    (@yordansoares)

    Hi @mikyf,

    As my colleague @pomegranate has already said, please note that 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 (that in fact appear to be your case). 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 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Invoice Order Number’ is closed to new replies.