Title: Invoice Date
Last modified: August 21, 2016

---

# Invoice Date

 *  Resolved [alphachris](https://wordpress.org/support/users/alphachris/)
 * (@alphachris)
 * [12 years ago](https://wordpress.org/support/topic/invoice-date-1/)
 * Hi,
    I’m looking for a solution to include a custom field in the woocommerce 
   orders backend, which can be filled with an invoice date (which differs from 
   the order date). This shall be then printed on the invoice generated through 
   the “woocommerce-delivery-notes” – Plugin.
 * Any Ideas / Solution
 * [https://wordpress.org/plugins/woocommerce-delivery-notes/](https://wordpress.org/plugins/woocommerce-delivery-notes/)

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

 *  [alemarengo84](https://wordpress.org/support/users/alemarengo84/)
 * (@alemarengo84)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905585)
 * Hi guys.
    I need to fix this too. Due to Italian law, I MUST print invoice date,
   instead of only order date. Is it possible to customize or add any field for 
   this? I hope so! 🙂 Waiting for your kind support, regards!
 *  [alemarengo84](https://wordpress.org/support/users/alemarengo84/)
 * (@alemarengo84)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905592)
 * Hey!
    I managed to get this kind of data! I added the following piece of code
   within wcdn-template-functions.php
 *     ```
       $fields['invoice_date'] = array(
       	'label' => __( 'Invoice date', 'woocommerce-delivery-notes' ),
       	'value' => date( get_option( 'date_format', 'F j, Y' ) )
       );
       ```
   
 * I put it in line 228. Eureka!
 * With this piece of code, invoice date output matches the day when you print invoice.
 *  [piffpaffpuff](https://wordpress.org/support/users/chabis/)
 * (@chabis)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905594)
 * [@alemarengo84](https://wordpress.org/support/users/alemarengo84/) nice hack 
   but i wouldn’t edit plugin files, it’s not update proof. you could edit the template
   by copying it. but there is even an easier solution via a filter in functions.
   php:
 * [https://wordpress.org/support/topic/invoice-data?replies=3](https://wordpress.org/support/topic/invoice-data?replies=3)
 * the invoice date is generated when you print the invoice for the first time.
 *  [alemarengo84](https://wordpress.org/support/users/alemarengo84/)
 * (@alemarengo84)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905595)
 * piffpaffpuff, thanks for your reply.
    The point is that my business consultant
   told me that the progressive number invoice number should match invoice date 
   too. I cannot print an invoice for order n.3 on the 31st of a month and another
   invoice for order n.4 on the 3rd day of the same month, I should match order 
   number and invoice date. That’s what generated my request. 🙂
 *  [piffpaffpuff](https://wordpress.org/support/users/chabis/)
 * (@chabis)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905596)
 * maybe i don’t seem to understand you right but the thin is programmed like that:
 * when you print the invoice for the first time, the invoice date and invoice number
   are generated automatically. they will be saved and can’t be changed later. example:
   print invoice 3 and it wlll have a date of ie. the 26th november, print invoice
   4 the next day and it will be dated the 27th.
 * this means, your case can’t ever happen.
 *  [alemarengo84](https://wordpress.org/support/users/alemarengo84/)
 * (@alemarengo84)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905602)
 * Hi piffpaffpuff.
    Thanks for your reply. Sorry to reply so late, I was doing 
   it but within another thread whose topic relates to invoice date. I have to, 
   or better now I must find a fix for this. I realized that, as you wrote to me
   previously, invoice date is generated once it is printed for its first time, 
   right? Ok… assuming that it is non-editable thing, is it possible to use [your snippet](https://wordpress.org/support/topic/invoice-data?replies=3)
   in order to add a row right below order date row in order to show the same date
   of the order? That said, I could even translate “Order date” with the Italian
   for “Invoice date” and everything will be fine.
 * Lastly, but not for importance, I’d like you to help me discover what may have
   happened to my ecommerce since during the last days, at the very moment I was
   saving invoices in order to be sent to my business consultant, something goes
   wrong and I found that order date and invoice counter are not linked together.
   For instance, an order that was placed in december has taken an invoice number
   of November.
 * What may have caused this?
    Everything has worked perfectly till now.
 * If you could help me, I’ll be grateful.
 * Best regards.

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

The topic ‘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

 * [delivery notes](https://wordpress.org/support/topic-tag/delivery-notes/)
 * [Invoice Date](https://wordpress.org/support/topic-tag/invoice-date/)
 * [Woocommercer](https://wordpress.org/support/topic-tag/woocommercer/)

 * 6 replies
 * 3 participants
 * Last reply from: [alemarengo84](https://wordpress.org/support/users/alemarengo84/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/invoice-date-1/#post-4905602)
 * Status: resolved