• Resolved jitka88

    (@jitka88)


    Hi guys,

    I found strange behaviour. Orders opened in year 2023 and completed in 2024 (that’s the moment the invoice is generated) have the right number, but wrong year. And yes, in the settings in prefix is used shortcode [order_year].

    Let me explain: Order #1234 was created on 28.12.2023 and paid, sent a invoiced generated on 2.1.2024. The correct number of the invoice should be 20240001, but the generated number was 20230001.

    (As fix we manually changed the numbers in database (it was two invoices, so no big deal) and regenerated invoices, so it’s ok now on our site.)

    Could you please look at it?

    Thank you!

    Jitka

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hello @jitka88,

    > Orders opened in year 2023 and completed in 2024 (that’s the moment the invoice is generated)
    What exactly do you mean by “completed”? WooCommerce has its own definitions. ??

    You mentioned:
    Order #1234 was created on 28.12.2023

    Note:
    – [order_year] = year the order was created
    – The years the order was created and paid are different according to WooCommerce.
    – You need to use [invoice_year] instead of [order_year] in order to print the year the Invoice document was generated. ??

    Thread Starter jitka88

    (@jitka88)

    Hi, thanks!

    J.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong year for invoices from previous year’ is closed to new replies.