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

    (@pomegranate)

    The [invoice_year] shortcode uses the year of the invoice date.
    Can you check the invoice date of those 2016 orders? The invoice date is not tied to the order date, so when you create an invoice today for an order from 2016, it will use todays date.
    Let me know what you find!

    Ewout

    Thread Starter bafelmauk

    (@bafelmauk)

    i added picture
    00001/2017 this i made 2017
    00027/2017 this i made 2016 but when year changed it put also this 2017

    example

    Here is my invoice_year
    invoice_year

    • This reply was modified 8 years, 2 months ago by bafelmauk.
    Plugin Contributor Ewout

    (@pomegranate)

    What’s the invoice date on the order with ‘00027/2017’?

    I have just checked this and all my 2016 invoices still have the 2016 prefix, so I think this is an issue with the invoice date rather than the placeholder.

    Ewout

    Thread Starter bafelmauk

    (@bafelmauk)

    okay i think i get it.
    i cant press cant

    i need open order and i need press thisthis

    it’s wast of time i much easier would be if i could get it work with what i show on 1st image

    Plugin Contributor Ewout

    (@pomegranate)

    Images are not showing here but I followed the link.

    woocommerce complete order Completes the order and should definitely work.

    If google translate serves me right, WooCommerce Salvesta Tellimus is Save order. But that doesn’t do anything different.

    Can you confirm that the invoice date was indeed 2017 on those older orders?

    Thread Starter bafelmauk

    (@bafelmauk)

    how i can confirm ?
    but yea i’m sure it changed when year changed

    here is image
    order

    there is no way i confirmed it 2017 i pressed next day this:

    but it seems not working
    but i made also 1 test

    when i opened 1 order and changed year to 2016 and pressed save order then it was 2016 when i opened orders.

    it’s seems working when i open order and pressing save order

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! To confirm, you need to go into the order itself, then under ‘PDF invoice data’ you will see an invoice date. This is not the same as the order date, it is set to the first moment you create the invoice. This means that if you create an invoice in 2017 for an order that was placed in 2016, the invoice date will be 2017. I think this is what’s happening here.
    If you want to show the order year, you have to use [order_year] instead of [invoice_year], although this will not affect the invoice date itself.

    Ewout

    Thread Starter bafelmauk

    (@bafelmauk)

    sorry for late respond, but i was busy.

    so these are settings what i use 1

    some words translated to English:
    üldandmed – general information
    tellimuse kuupev – order date
    tellimuse olek t?idetud – order status completed

    PDF arve andmed – pdf invoice information
    Arve – Invoice
    Arve kuup?ev – Invoice date
    image:
    order is 5 moth old and i complete it 2016.

    but invoice date keep changing too current time but it say its completed
    there is also this symbol

    Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    That makes sense. As I explained before, the invoice date will be created at the moment you create the invoice. If you create the invoice for an order from 2016-09-03 (=order date) on 2017-02-12 (=invoice date), the invoice date will be 2017-02-12. After that, the invoice date doesn’t change anymore. So if you had created the invoice in 2016, it would have kept the 2016 date. This is not dependent on whether the order is completed or not!

    Ewout

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘invoice_year after year change’ is closed to new replies.