Jump to content

Payment date on invoice


m.fontana

Recommended Posts

Hi, I’m trying to change the invoice date: instead of reporting the creation date I need the payment date instead.In the invoice.summary-tab.tpl file I found this line but I don’t understand how to change the date values

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

Any idea for doing this?Thanks
Matteo (edited) 

Edited by m.fontana (see edit history)
Link to comment
Share on other sites

I mean the date of registration of the payment, if you pay by credit card the date is the same as the order but if you pay by bank transfer the date could be a couple of days later.
Since the paid accountant received must match an invoice, I need to change the date reference in the invoice

Thanks
Matteo

Link to comment
Share on other sites

Well, you should change the order states settings so that the invoice is generated only when the order is actually paid. Specifically, when it is paid by bank transfer, it should be in the "In processing" or another order state that has not yet generated the invoice, and when it has been paid, you move it to a state that generates the invoice.

Link to comment
Share on other sites

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
×
×
  • Create New...