- Posts: 208
- Thank you received: 1
Problem with Invoices (date on invoice is wrong)
- Tim Stöhr
- Topic Author
- Offline
- Elite Member
-
Less
More
11 years 2 months ago #56180
by Tim Stöhr
Problem with Invoices (date on invoice is wrong) was created by Tim Stöhr
Hi
I am having a problem with the invoices. They show the date that I downloaded them from the server and not the date that the person booked it. How come? How can I change it so that they show the date that the customer bought the stuff?
I am having a problem with the invoices. They show the date that I downloaded them from the server and not the date that the person booked it. How come? How can I change it so that they show the date that the customer bought the stuff?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
11 years 2 months ago #56209
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Problem with Invoices (date on invoice is wrong)
Hi Tim
Could you please follow the instruction below to make it works:
1. Open the file components/com_eventbooking/helper/helper.php
2. Find the code below
3. Change it to
After that, it should work as expected
Tuan
Could you please follow the instruction below to make it works:
1. Open the file components/com_eventbooking/helper/helper.php
2. Find the code below
Code:
$replaces['invoice_date'] = date($config->date_format);
3. Change it to
Code:
$replaces['invoice_date'] = JHtml::_('date', $row->created_date, $config->date_format, null);
After that, it should work as expected
Tuan
Please Log in or Create an account to join the conversation.
- Tim Stöhr
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 1
11 years 2 months ago #56289
by Tim Stöhr
Replied by Tim Stöhr on topic Problem with Invoices (date on invoice is wrong)
Hi Tuan,
it is doing a lot of crazy stuff with the invoice date now (ie changing the dates on the downloaded invoice.) Sometimes it is todays date, a few times the date of the payment for the event, sometimes a random date... I will let it settle as my hoster (and internet browser) are a bit weird on the caching part.
Will ask below if something does not work or does work or whatever...
it is doing a lot of crazy stuff with the invoice date now (ie changing the dates on the downloaded invoice.) Sometimes it is todays date, a few times the date of the payment for the event, sometimes a random date... I will let it settle as my hoster (and internet browser) are a bit weird on the caching part.
Will ask below if something does not work or does work or whatever...
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
11 years 2 months ago #56330
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Problem with Invoices (date on invoice is wrong)
Hi
Sorry, my bad. The correct code need to be:
Tuan
Sorry, my bad. The correct code need to be:
Code:
$replaces['invoice_date'] = JHtml::_('date', $row->register_date, $config->date_format);
The following user(s) said Thank You: Tim Stöhr
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 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.