• Resolved tomas0606

    (@tomas0606)


    Hi,

    Is it possible to add a code snippet that will make invoice_date to be the same as order_date without changing all historical invoices? I want to apply it only for orders from 2021 and later (date >= 1/1/2021).

    Best regards,

    Tom

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

    (@dpeyou)

    Hey @tomas0606,

    On the “Documents” tab of the plugin there is a setting called “Display Invoice Date”. This option has a drop-down with 3 values: “No”, “Invoice Date” & “Order Date”. The PDF documents are immutable so as long as you do not reload them with the latest settings, you will be good to go. For the January orders of 2021, you will have to manually regenerate them. The link below will give you some more helpful info regarding the regeneration of invoices.:

    https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/

    I hope this helps!

    Plugin Contributor Ewout

    (@pomegranate)

    Small additional note to the above: regenerating the document will refresh those settings, but will not change the invoice date or invoice number. You can edit the invoice date in the “PDF Document Data” panel on the order details page for each invoice individually.

    Thread Starter tomas0606

    (@tomas0606)

    Hi @dpeyou, thanks for the answer. I’m afraid I wasn’t clear – I’m not looking for a change in the display matter, but in the info – I want that every invoice_date will be equal to its related order_date. means that if an order submitted on 3/3/2021 the invoice date will be 3/3/2021. Currently, I have invoices that hold a date that is later than its related order_date (cause of differences in the order statuses time).
    Does your solution solve it?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invoice date = order date’ is closed to new replies.