Thanks for the great add-on!!! i just installed everything on my phpvms 5.5.2. Its working but i get a error.. do you have any clue?
i attached also a screenshot..
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/dd-photography.de/vas.airberlin-va.de/core/templates/finance/airline_finance.php on line 9
Thanks for the great add-on!!! i just installed everything on my phpvms 5.5.2. Its working but i get a error.. do you have any clue?
i attached also a screenshot..
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/dd-photography.de/vas.airberlin-va.de/core/templates/finance/airline_finance.php on line 9
I have that to and have a clue what it might be. I will report back here in one moment
Oh yeah any time man. I hope it works out. I like this module. I added soem expenses to my test airline today and all is well. It is functional and clean.
The template file “/home/990/217990/public_html//core/templates//finance/finance.php.tpl” doesn’t exist in /home/990/217990/public_html/core/classes/TemplateSet.class.php on line 248
The template file “/home/990/217990/public_html//core/templates//finance/finance.php.tpl” doesn’t exist in /home/990/217990/public_html/core/classes/TemplateSet.class.php on line 248
You need to upgrade your phpVMS version to 5.5x by Simpilot. Alternatively, you can change my module core files to match older versions of phpVMS (AKA, TPL version)
<?php if(!$expenses) {echo '<tr><td align="center" colspan="3">There are no expenses set up at this time!</td></tr>';}
else {
foreach($expenses as $expense) { ?>
<tr>
<td><?php echo $expense->name ;?></td>
<td><?php echo FinanceData::formatMoney($expense->cost);?></td>
<td>
<?php
if($expense->type == "M")
{
echo 'Monthly';
}
elseif($expense->type == "F")
{
echo 'Per Flight';
}
elseif($expense->type == "P")
{
echo 'Percent (Month)';
}
else
{
echo 'Percent (Per Flight)';
}
?>
</td>
</tr>
<?php
}
}
?>
Now we get a nice message that there are no expenses setup at this time instead of a error on the page. I am more than sure this will work for an airline that has only one pilot in the setup process that has no flights yet. I am going to go look at it now as we speak and see what happens.
Thanks again for another great module Parkho. I like it. I appreciate the share with us.
Here is mine skinned with the error gone and a message given.