Someone registers on 1st May
Email sent to attendee – click to download invoice OK – invoice downloaded will say 1st May
Email sent to admin office – click to download invoice OK – invoice downloaded will say 1st May
If the link is clicked later – 15th May – (accounts office likely to do this after the date) to check records etc. then the invoice will say 15th May.
This invoice date should stay the same ie NOT change as it is no use for accounting purposes. Unless invoice is downloaded immediately – sometimes not possible.
It seems to be grabbing the current date rather than the registration date.
The invoice does display the date it was generated on (similar to an invoice displaying a date sent). I can see why in this case you want it to always display the date the person registered.
You can change the default by going into the invoice template.php file (located in event-espresso/gateways/invoice/) and follow these steps:
Step 1: set a few new variables which will convert the date registered value into a date timestamp and format the date:
Then on the line that normally displays the date the invoice was generated (~ line 114) you can change it to something like:
$pdf->Cell(180, 0, __('Date of Registration: ', 'event_espresso') . $my_reg_date_display, 0, 1, 'R'); //Set invoice date
Viewing 1 reply thread
The support post ‘PDF Invoice date changes’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.