Simon VVair Posted December 7, 2009 Report Posted December 7, 2009 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. Quote
Simon VVair Posted December 7, 2009 Author Report Posted December 7, 2009 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? Quote
Moderators joeri Posted December 7, 2009 Moderators Report Posted December 7, 2009 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 Quote
Simon VVair Posted December 7, 2009 Author Report Posted December 7, 2009 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? Quote
Simon VVair Posted December 7, 2009 Author Report Posted December 7, 2009 I modified just to try 50-60 pireps directly from the database putting the correct prices, then i went under mantainance and pushed resed PIREPS finances... nearly 90% of the pireps i modified manually on the database went back to 0. What is this for then? Quote
Administrators Nabeel Posted December 7, 2009 Administrators Report Posted December 7, 2009 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. Quote
Moderators joeri Posted December 7, 2009 Moderators Report Posted December 7, 2009 i simply removed the realprice from the local.. isn't it the same? no because then it will look at the app... and get a true there Quote
Simon VVair Posted December 7, 2009 Author Report Posted December 7, 2009 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? Quote
Administrators Nabeel Posted December 7, 2009 Administrators Report Posted December 7, 2009 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) Quote
Simon VVair Posted December 8, 2009 Author Report Posted December 8, 2009 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 Quote
Simon VVair Posted December 8, 2009 Author Report Posted December 8, 2009 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 Quote
Administrators Nabeel Posted December 9, 2009 Administrators Report Posted December 9, 2009 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 Quote
TAV1702 Posted December 31, 2009 Report Posted December 31, 2009 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? Quote
Administrators Nabeel Posted December 31, 2009 Administrators Report Posted December 31, 2009 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) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.