Pilot Financial Report V1.0

Here is another small add-on for those who want to show pilot’s financial reports. It’s based on pilot id, so the results are for each of you pilots.Cheers

Install

  1. Download the zip from repo.

  2. Unzip and upload in the order of folders.

  3. Access financial report for a pilot by

    <?php echo url('/pfinance') ;?>

-----------------OR----------------------

Access financial report for all pilots by

<?php echo url('/pfinance/pilots') ;?>
  1. Enjoy.

Download:PilotFinancialReport_V1.0

Screenshot for a pilot report:

Screenshot for all pilots report:

Change Log:

  1. PilotFinance.class.php & pilots_finance.tpl have been added. Those of you who have downloaded this before should re-download.

hi parkho

i have this error:

Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 12**

€ 0.00

  • Your total flight fuel expenses in Italiani Volanti is:
    Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 18**
    € 0.00
  • Your total in flight expenses in Italiani Volanti is:
    Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 24**
    € 0.00
  • Your total flight revenue in Italiani Volanti is:
    Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 31**

Screenshot?

attach photos

post-2342-0-99674300-1347814792.png

I was talking about the general screen shot of the module in order to preview it…

Great Work, Parkho

I made some adjustments

Mattia

you touched on some of the files line by disponibilziados Parkho?

hi parkho

i have this error:

Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 12**

€ 0.00

  • Your total flight fuel expenses in Italiani Volanti is:
    Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 18**
    € 0.00
  • Your total in flight expenses in Italiani Volanti is:
    Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 24**
    € 0.00
  • Your total flight revenue in Italiani Volanti is:
    Warning** : mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in **** /var/www/virtual/italianivolanti.it/htdocs/iv/core/templates/pilot_finance.tpl **** on line **** 31**

Are you using any shared server for your site? Cause I think that’s where the problem lies not sure though. It’s working just fine on this side.

Parkho,

seems to be a permission problem, what do you think?

I was talking about the general screen shot of the module in order to preview it…

i copy the file in my site but dont work

i copy the file in my site but dont work

Strange! did you copy the .tpl in templates or your skin folder?

yes,

pilot_finance.tpl in templates folder and Pfinance folder in modules folder

im getting that mysql error as well. one thing you should be able to do maybe in a future update is allow admins to view all the pilots profitability.

Same here, MySql error

1 Like

I think it’s fixed

1 Like

Better now, thanks Parkho, although I still have a couple of little problems to solve…

I edited the .tpl as well, have you replaced that too?

Don’t forget, if you named your database to have something OTHER than “phpvms_pireps” you will get the mysql errors. Change those lines in your “PilotFinance.class.php” to indicate your database ie “nameofdata_pireps”; whatever yours is.

Good point. Thanks