Title: Wrong invoice Date
Last modified: November 9, 2017

---

# Wrong invoice Date

 *  [info.karteria.ch](https://wordpress.org/support/users/infokarteriach/)
 * (@infokarteriach)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wrong-invoice-date/)
 * Hi there
 * I have also remarked that since a latest update suddenly the invoice date is 
   showing on the invoice. This was not visible before.
 * I think it is great, but the date should be changeable. I made opened an order
   for a customer on the 5th November and on the 8th November 2017 I printed the
   invoice, but the date on the invoice was the 6th November 2017? How can this 
   be changed?
 * Best thanks in advance for your efforts and your assistance.
 * Regards Claudia

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Vishal Kothari](https://wordpress.org/support/users/ashokrane/)
 * (@ashokrane)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-9668884)
 * Hi [@infokarteriach](https://wordpress.org/support/users/infokarteriach/),
 * I will check on this, but since I haven’t added code that specifically adds the
   invoice date, I think this is due to recent WooCommerce updates.
 * Regarding your order, did you change the order status on 6th November? Just curious
   to know why the date of 6th Nov came on the invoice. Also, is this the case for
   all your orders – where the invoice date is the next date of the order placed
   date?
 * It is hard to provide the invoice date as changeable, rather I would hide it 
   instead.
 * :Vishal
 *  Thread Starter [info.karteria.ch](https://wordpress.org/support/users/infokarteriach/)
 * (@infokarteriach)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-9669161)
 * Hi [@ashokrane](https://wordpress.org/support/users/ashokrane/)
 * Thanks for your reply and your efforts. I don’t know from where they Plugin takes
   the date, but it will be all the time possible, that a customer places an order
   in my shop, which will be delivered some days later, as I also deliver on order.
   So the invoice should show the date, when I print it for shipment. It looks not
   very professional when you ship an order with an invoice, which has an 4 or more
   days old date.
 * No, I did not change the status on the order on the 6th November 2017, I changed
   it on the 8th November 2017, therefore I think it’s fully not logical to get 
   on the invoice the date of 6th November 2017.
 * I checked trough several orders, some show as invoice date the same date as the
   order was placed in the shop. One shows f.e. the invoice date of today, even 
   if the order was placed in June 2017. Some show a fully different invoice date,
   3 or 5 days after the order was place??? And there is no system behind, sometimes
   it shows the date when the order status was changed to status “in processing”,
   sometimes it shows the date on which I changed the status to “completed”. This
   is really curious???
 * Actually I don’t want to make it invisible, as I think it is a good thing to 
   have an invoice date.
 * Very best thanks and best regards
 * Claudia
 *  Plugin Author [Vishal Kothari](https://wordpress.org/support/users/ashokrane/)
 * (@ashokrane)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-9669260)
 * Thanks for all the details Claudia. This helps.
 * I will check on this issue & get back to you most probably by Monday.
 * :Vishal
 *  [creativenl](https://wordpress.org/support/users/creativenl/)
 * (@creativenl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10126959)
 * Any news on this one? I also need the Invoice date on the invoice. And preferably
   the date the invoice will be send.
    -  This reply was modified 8 years, 2 months ago by [creativenl](https://wordpress.org/support/users/creativenl/).
 *  [Rashmi Malpande](https://wordpress.org/support/users/rashmim/)
 * (@rashmim)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10127971)
 * Hi [@creativenl](https://wordpress.org/support/users/creativenl/),
 * It is not possible to add a invoice date in the current version of the plugin.
   But you can display it using some custom coding. You will have to override the
   invoice template and add some code to display the invoice date. This invoice 
   date is also displayed in the admin order page below the ‘Print Invoice’ button.
 * Can you tell me where you want the invoice date to be displayed so that I can
   tell where exactly you will need to add the custom code?
 * Regards,
    Rashmi
    -  This reply was modified 8 years, 2 months ago by [Rashmi Malpande](https://wordpress.org/support/users/rashmim/).
 *  [creativenl](https://wordpress.org/support/users/creativenl/)
 * (@creativenl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10127997)
 * Hi, I think just below the invoice number will be a great place to put it.
 *  [creativenl](https://wordpress.org/support/users/creativenl/)
 * (@creativenl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10140881)
 * Can you help me more with the custom coding?
 *  [Rashmi Malpande](https://wordpress.org/support/users/rashmim/)
 * (@rashmim)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10148810)
 * Hi [@creativen](https://wordpress.org/support/users/creativen/),
 * You will have to make some changes in the plugin files.
 * 1. Go to line no 251 in **‘woocommerce-delivery-notes/includes/wcdn-template-
   functions.php’** file. You will find this condition –
    `if( wcdn_get_template_type()
   == 'invoice:' ) {`
 * Remove the colon from the string ‘invoice:’. Change it to – `if( wcdn_get_template_type()
   == 'invoice' ) {`
 * 2. Go to line 501 in **‘woocommerce-delivery-notes/includes/class-wcdn-print.
   php’** file. You will find this statement –
 * `$meta_added = add_post_meta( $order_id, $meta_key, time(), true );`
 * Change it to – `$meta_added = update_post_meta( $order_id, $meta_key, time() );`
 * This will show the date on which the invoice is sent. We will add this in the
   plugin in our next update.
 * Regards,
    Rashmi
 *  [creativenl](https://wordpress.org/support/users/creativenl/)
 * (@creativenl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10149434)
 * Great,
    Only the “invoice date” needs to be translated … i will look into that
   now.
 * My client is using the print invoice option on her android telephone. She doesn’t
   get a print of the invoice, but the pages of the wpadmin is on the print (2 pages).
   
   Any idea. On the iPhone it is working well.
 *  [creativenl](https://wordpress.org/support/users/creativenl/)
 * (@creativenl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10149437)
 * and one other question.. can the shipping address be hidden on the invoice?
 *  [creativenl](https://wordpress.org/support/users/creativenl/)
 * (@creativenl)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10149478)
 * I had to add something to translate it in the right way. i also had to use another
   way of translating before (Loco Translate) to make a new translation file.
 * #: ../includes/class-wcdn-writepanel.php:218
    msgid “Invoice Date” msgstr “Factuurdatum”
 * the msgid “Invoice date: ” didn’t do the thrick.
 *  [Rashmi Malpande](https://wordpress.org/support/users/rashmim/)
 * (@rashmim)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10152424)
 * Hi [@creativenl](https://wordpress.org/support/users/creativenl/),
 * I am not sure why the print invoice is not working on Android. I will take a 
   look at that and get back to you.
 * Do you want to hide the shipping address just for Invoice or for Delivery Notes
   and Receipt as well?
 * Regards,
    Rashmi

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Wrong invoice Date’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

## Tags

 * [date](https://wordpress.org/support/topic-tag/date/)

 * 12 replies
 * 4 participants
 * Last reply from: [Rashmi Malpande](https://wordpress.org/support/users/rashmim/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/wrong-invoice-date/#post-10152424)
 * Status: not resolved