Problem with Invoices (date on invoice is wrong)

  • Tim Stöhr
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 years 2 months ago #56180 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?

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
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
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
  • Elite Member
More
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...

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
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:
Code:
$replaces['invoice_date'] = JHtml::_('date', $row->register_date, $config->date_format);
Tuan
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