0
Just encountered a couple bugs.
First, i'm experiencing the invoice date error that a few people had previously experienced. I checked my server and Joomla timezone settings. Everything matches. But dates are still showing up a day earlier than what was set.
(Am running the latest version of Invoice Manager)
Secondly, occasionally when re-saving a invoice after making a edit to the due date or the type of invoice (normal or recurrent), if i try to send the invoice as a email to the client i get a server time out. Looks like it varies on what it hangs on. But it normally hangs on some cls.php file located in the dompdf helpers include directory.
Any thoughts on how i can get these two bugs fixed?
Regards,
Sean
First, i'm experiencing the invoice date error that a few people had previously experienced. I checked my server and Joomla timezone settings. Everything matches. But dates are still showing up a day earlier than what was set.
(Am running the latest version of Invoice Manager)
Secondly, occasionally when re-saving a invoice after making a edit to the due date or the type of invoice (normal or recurrent), if i try to send the invoice as a email to the client i get a server time out. Looks like it varies on what it hangs on. But it normally hangs on some cls.php file located in the dompdf helpers include directory.
Any thoughts on how i can get these two bugs fixed?
Regards,
Sean
Responses (5)
-
Accepted Answer
-
Accepted Answer
0The date issue is only happening on certain invoices. I am seeing it on both the invoice itself and the invoice list page.
The PDF renders on some invoices but not others. (reason why i'm having a hard time tracking down the error)
Is your PDF generation dependent on a certain variable or response being passed... is this why its timing out? -
Accepted Answer
0but only on some invoices? that is weird.. the normal thing is that it would happen to all (or none, logically). can I take a look at it? you can send access at support@ joomlathat.com
same thing for the PDF invoices. if you can indicate to me which behaves OK and which doesn't, I'll be able to find the pattern that is causing this. -
Accepted Answer
0Were you ever able to log into my setup? That date and PDF issue is still happening... I was never able to track down the issue causing them.
Regards,
Sean-
Germinal Campsmore than a month agono, I don't recall... did you send it to me?
-
-
Accepted Answer
0Yeah... back in December i sent you some login credentials...
I made a few edits to your code in the default.php file under administrator/components/com_invoices/views/tmpl
Maybe you can review them and possibly add them to your next update... so when i update next time it wont erase my fix?
Around line 82
The math for "All pending income" wasn't always adding up correctly. So i simplfied it and created a new variable. and then entered that variable into your helper script.
//Sean's Quick Change
$billed = $this->totals->total_invoices;
$paid = $this->totals->total_income;
$total_Outstanding = $billed - $paid;
echo InvoicesHelper::format($total_Outstanding, $params->get('currency_before'), $params->get('currency_after'));
Then around line 187
The whole date issue where it was always displaying a different date than what was set on the invoice. (no mater what my server or Joomla date/time settings were set to)
i did the following:
if ($row->invoice_date == "0000-00-00 00:00:00") echo JText::_('NOT_SETTED');
else
//Start Sean's Fix
$raw_Date = strtotime($row->invoice_date);
$fixed_Date = date('M d Y',$raw_Date);
echo $fixed_Date;
//End Sean's Fix
//JHTML::_('date', $row->invoice_date, JText::_('DATE_FORMAT_PAYMENTS'));
This fixed the first issue i started this thread about.
I am still trying to track down why some invoices will properly export to pdf and some will not. Usually if i delete the invoice that has the issue and then recreate it and start over again it will sometimes fix the problem.
-Sean
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »