Jump to content

Fuel price..sorry again..


Simon VVair

Recommended Posts

Sorry if i open a new topic but i gave a look to all precedent posts and can't understand what is the problem.

All airports are set at 0.

Local config is :

Config::Set('WeightUnit', '1');   # 0=Kg 1=lbs
Config::Set('DistanceUnit', '2');   # 0=KM 1= Miles 2=NMiles
Config::Set('SpeedUnit', '1');   # 0=Km/H 1=Kts
Config::Set('AltUnit', '1');   # 0=Meter 1=Feet 
Config::Set('LiquidUnit', '3');   # 0=liter 1=gal 2=kg 3=lbs
Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message
Config::Set('FUEL_DEFAULT_PRICE', '0.37');

so when i enter the airports page it sais :

"Fuel Price *

This is the price per lbs. Leave blank or 0 (zero) to use the default value of 0.37."

and this is correct.

So then why when i receive a report of a pilot i have :

Fuel Used

4774

This is the fuel used on this flight in lbs

Fuel Price

21053.3

so the price is still going for x5 instead of 0.37 € x lbs.

Link to comment
Share on other sites

I found also this in the database :

phpvms_fuelprices

and have 8 airports inside

    1  LIMC  4.56  4.42  2009-12-07 03:11:10

2 LIRF 4.21 3.95 2009-12-05 02:07:05

3 LIPQ 4.97 4.27 2009-12-06 14:28:01

4 LIPZ 4.97 4.28 2009-12-03 17:58:09

5 LIME 7.19 6.71 2009-11-30 15:32:47

6 LIMJ 4.56 4.42 2009-12-04 21:46:28

7 LIPX 4.97 4.28 2009-12-03 16:57:17

8 LICD 4.7 4.36 2009-12-05 11:17:40

while on the admin part of phpvms i have over 30 airports.. while only 8 are here? I have also change manually the database?

Link to comment
Share on other sites

  • Moderators

these i think are the live price

look in your APP.Config.php

for this line

Config::Set('FUEL_GET_LIVE_PRICE', true);
Config::Set('FUEL_DEFAULT_PRICE', '5.10');
Config::Set('FUEL_SURCHARGE', '5');

copie it to your local.config and change the treu to fals

if you don't want to use the live pricing.

gr joeri

Link to comment
Share on other sites

these i think are the live price

look in your APP.Config.php

for this line

Config::Set('FUEL_GET_LIVE_PRICE', true);
Config::Set('FUEL_DEFAULT_PRICE', '5.10');
Config::Set('FUEL_SURCHARGE', '5');

copie it to your local.config and change the treu to fals

if you don't want to use the live pricing.

gr joeri

i simply removed the realprice from the local.. isn't it the same?

Link to comment
Share on other sites

  • Administrators

Which version are you on, 700? It's buggy. I fixed alot of bugs with the fuel prices not retrieving or being applied properly.

That fuel price table is for live prices, I cache them server side in that table for live prices. I'm working on fixing the prices right now.

Link to comment
Share on other sites

Which version are you on, 700? It's buggy. I fixed alot of bugs with the fuel prices not retrieving or being applied properly.

That fuel price table is for live prices, I cache them server side in that table for live prices. I'm working on fixing the prices right now.

So you suggest to upgrade to the 2.x version or 1.7x?

Link to comment
Share on other sites

  • Administrators

700 is the last in 1.x.

You can upgrade to the betas (2.x), since I'm fixing bugs in that (I'm working on fuel price stuff now, just commited 813), but you'd have to update fairly often. There might also be problems, but not as big as on 1.0, and I fix them really quickly once found (within a day or two)

Link to comment
Share on other sites

700 is the last in 1.x.

You can upgrade to the betas (2.x), since I'm fixing bugs in that (I'm working on fuel price stuff now, just commited 813), but you'd have to update fairly often. There might also be problems, but not as big as on 1.0, and I fix them really quickly once found (within a day or two)

ok i'll go for the upgrade,

cheers and thanks ;)

Link to comment
Share on other sites

ok i have updated to 813

Now i must say that editing the pireps is quite nicer than ver 700, gives the tickets cost, expenses and so on.

Could it be possible to have in the edit page the button to APPROVE / REJECT so i don't need to go back to pending pireps page to approve it?

Now, back to fuel, it doesn't do any more the moltiplication of 5.10x for the fuel, but something like this :

Gross Revenue:

€ 68,862.50

Change the load and price variables above to adjust this value.

Total fuel cost

€ 131.70

Change the fuel cost above to edit this total price

and as usual local.config is this :

Config::Set('MONEY_UNIT', '€');
Config::Set('FUEL_DEFAULT_PRICE', '0.37');
Config::Set('FUEL_GET_LIVE_PRICE', false);
Config::Set('FUEL_SURCHARGE', '5');

So it's not for sure 0.37 per lb, but enourmosly less.

The funny thing is the airport page in the admin section, even if i have written FALSE next to all airports i have written under Fuel Costs the LIVE word.

As usual, this is not to say that you did an error, but just trying to make always better this great program and keep up your great work.

Ciao and thanks,

Simon

Link to comment
Share on other sites

  • Administrators

Thanks for looking!

I found a bug, where it won't let you blank the fuel price.

If you set to false FUEL_GET_LIVE_PRICE (looks like you did), and set the fuel price as blank, it will then pick up that default price.

I fixed the bug where it default it to 0 when it's blank. Though, I might say if it's 0, and LIVE_PRICE is false, then it should use that default price? Would that be ok?

I'll add an accept button

Link to comment
Share on other sites

  • 4 weeks later...
  • Administrators

I just now set my config file to use live pricing. It is necessary to go back and edit every single airport fuel cost to 0 so it will use live fuel cost even though it is set to true in the config file?

Yeah, if it finds a price entered it will use that, since live pricing is only available at maybe 70% of US airports (maybe not even that high)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...