m.fontana Posted March 1, 2022 Share Posted March 1, 2022 (edited) 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 March 1, 2022 by m.fontana (see edit history) Link to comment Share on other sites More sharing options...
Ress Posted March 1, 2022 Share Posted March 1, 2022 By payment date do you mean the date when the order was placed, because it paid then with the card? Link to comment Share on other sites More sharing options...
m.fontana Posted March 2, 2022 Author Share Posted March 2, 2022 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 More sharing options...
Ress Posted March 2, 2022 Share Posted March 2, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now