Jump to content

How to change the invoice date


PrestaDesigner10
 Share

Recommended Posts

Hello, 

Prestashop 1.7.2 shows the date order and the date invoice on the invoice PDF.

 

The problem is that these dates are the same...

I need that the date of the invoice to be the same of the day when I generate the PDF, not the day of the order.

 

This is very important.

 

Is it possible?

 

This is the piece of code of invoice.summary-tab.tpl

 

 <tr>
  <td class="small white">{$title|escape:'html':'UTF-8'}</td>
  <td class="small white">{dateFormat date=$order->invoice_date full=0}</td>
  <td class="small white">{$order->getUniqReference()}</td>
  <td class="small white">{dateFormat date=$order->date_add full=0}</td>
  {if $addresses.invoice->vat_number}
   <td class=" small white">
    {$addresses.invoice->vat_number}
   </td>
  {/if}
 </tr>

 

Thank you.

Share this post


Link to post
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More