- Posts: 17
- Thank you received: 0
Today Date instead of Raised on Exported invoices
- kevind
- Topic Author
- Offline
- New Member
Less
More
8 years 8 months ago #67876
by kevind
Today Date instead of Raised on Exported invoices was created by kevind
hey there. I have a small problem with the event booking when exporting the invoices. They seem to export with the ‘todays’ date on them instead of the date they where raised… is there a setting anywhere to prevent this. Thanks for taking the time to read this and I would very much appreciate your help. Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
8 years 8 months ago #67884
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Today Date instead of Raised on Exported invoices
Hi Kevin
Could you please let me know what tag you are using in the invoice to show the date so that I can check it?
Tuan
Could you please let me know what tag you are using in the invoice to show the date so that I can check it?
Tuan
Please Log in or Create an account to join the conversation.
- kevind
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
8 years 8 months ago #67924
by kevind
Replied by kevind on topic Today Date instead of Raised on Exported invoices
hi there,
thanks for getting back to me.
On the invoice template the following is used for the date:
<td align="left" width="50%">Invoice Date:</td>
<td align="left">[INVOICE_DATE]</td>
thanks for getting back to me.
On the invoice template the following is used for the date:
<td align="left" width="50%">Invoice Date:</td>
<td align="left">[INVOICE_DATE]</td>
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
8 years 8 months ago - 8 years 8 months ago #67946
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Today Date instead of Raised on Exported invoices
Hi
I can confirm the issue. Right now, the tag [INVOICE_DATE] just be replaced with today date. Usually, that will be the invoice date but if you download the invoice later, the date will be wrong.
To solve the issue, please follow the instruction below :
1. Open the file components/com_eventbooking/helper/helper.php
2. Find the function generateInvoicePDF
3. Find this line of code
4. Change it to:
After that, it should work as expected. I am going to update the download package with this fix as well
Regards,
Tuan
I can confirm the issue. Right now, the tag [INVOICE_DATE] just be replaced with today date. Usually, that will be the invoice date but if you download the invoice later, the date will be wrong.
To solve the issue, please follow the instruction below :
1. Open the file components/com_eventbooking/helper/helper.php
2. Find the function generateInvoicePDF
3. Find this line of code
Code:
$replaces['invoice_date'] = date($config->date_format);
4. Change it to:
Code:
$replaces['invoice_date'] = JHtml::_('date', $row->register_date, $config->date_format, null);
After that, it should work as expected. I am going to update the download package with this fix as well
Regards,
Tuan
Last edit: 8 years 8 months ago by Tuan Pham Ngoc.
Please Log in or Create an account to join the conversation.
- kevind
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
8 years 8 months ago - 8 years 8 months ago #68086
by kevind
Replied by kevind on topic Today Date instead of Raised on Exported invoices
Hi there,
I have applied this change as you say... however when you try and view an invoice it just does to a blank page.
Here is a paste of the helper file in the attachment
I have applied this change as you say... however when you try and view an invoice it just does to a blank page.
Here is a paste of the helper file in the attachment
Last edit: 8 years 8 months ago by kevind.
Please Log in or Create an account to join the conversation.
- kevind
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
8 years 8 months ago #68087
by kevind
Replied by kevind on topic Today Date instead of Raised on Exported invoices
Helper file contents attached
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
8 years 8 months ago #68136
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Today Date instead of Raised on Exported invoices
I believe there is something wrong with your change. You can submit a support ticket sending us super admin account of your site so that we can check and do the modification for you
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.