Jump to content

stephanepa38

Members
  • Posts

    84
  • Joined

  • Last visited

Everything posted by stephanepa38

  1. Hello I've done some tests. In the MySQL database, the flight hours are OK and the salary per hour is correctly set to 15 euros per hour. I have done 3 flights. 1 h 42 = 102 minutes 1 h 06 = 66 minutes 1 h 03 = 63 minutes TOTAL : 3 h 51 = 231 minutes The salary is 15 euros per hour, so it is 0.25 euro per minute. Normally, I must have this salary for these three flights : 231 minutes X 0.25 = 57.75 euros The problem is that phpVMS shows me 52.65 euros for these three flights. I found the calcul he has done : 3.51 X 15 = 52.65 euros But 3 hours 51 minutes is not 3.51 hour. 3.51 hour is 210.6 minutes, so it is different than 231 minutes. How can I do to correct this error ? Thanks Stéphane
  2. Hello I have some errors in the salaries of the pilots. Example : A pilot flew 1 hour and 11 minutes. FSACARS records 1h11 and phpVMS use 1.11 for the hours of flight. The salary for this pilote per hour is 15 euros. So the normal salary is 15/60 = 0.25 euro per minute of flight. In this case, the salary must be 71X0.25 = 17.75 euros The problem is that phpVMS do this calcul : [hours of flight] X [salary per hour] = salary for this flight 1.11 X 15 = 16.65 euros whereas the salaty must be 17.75 euros. Can you do an patch to delete this error ? Thanks Stéphane
  3. Hello The result is 1050. For information, I deleted the line about the fuel surcharge, so i don't think the problem comes from the fuel surcharge. I will add this line with "0". I will post the result. Thanks Stéphane EDIT : If you delete the line about the fuel surcharge in the local config file, it takes the default value : 5. If you put this line and set the value to 0, it works very good. Now, all is OK. Thanks for your help ! Stéphane
  4. I think it is very interesting to round the fuel price to a whole number. I have done some tests. I set up the fuel price to 1.00 euro / kg. I filed a manual pirep and the fuel costs are - 1050 euros for 1000 kg of fuel (so fuel price is 1.05 euros / kg). In the test.php file, the fuel price is correct. Thanks Stéphane
  5. I calculate the fuel price. The price is 0.5 euros / kg but in test.php it is 0.45 (also good). So 0.5 can be the rounded number of 0.45 The rounded price is not really a big problem for me, but it will be great if you can fix it. Thanks ! Stéphane
  6. Hello I've done the update. Now, when I go to the test.php file, it shows me 0.45 !!! In the finances, for 1000 kg of fuel, the price is -500 euros. The real price is -450 euros, but I think phpVMS rounds the price, doesn't it ? Thanks for all. Stéphane
  7. Ok thanks, I dowload the latest phpvms.beta.zip file and I will install it. Thanks for your help ! Stéphane
  8. I am currently using the latest beta and the build is 708. What version do I have to install ? Thanks Stéphane
  9. The problem is that the fuel price is set in the airport data to 0.45 for all the airports of my scheduled flights. Stéphane
  10. Hello I've done the update. Here are the lines of my local config files about the fuel : # Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_DEFAULT_PRICE', 0.45); Config::Set('FUEL_GET_LIVE_PRICE', false); Config::Set('FUEL_SURCHARGE', '5'); I want the fuel price to be 0.45 per kg. In phpVMS, i have done a new flight. The fuel used is 2431 kg. In the finances, the fuel costs are - 122.00 €. 2431 X 0.45 = 1093.95 € When I use the test.php file to have the fuel price on LFPG, it shows me "0". What must I do to set the fuel price to 0.45 € / kg ? Thanks Stéphane EDIT : I have the same problem with the PIREPS from the pilot center. --> The fuel price is about 0.05 € per kg. Stéphane
  11. Thanks for your help. I will do this update tomorrow morning (in French). Stéphane
  12. Hello Thanks. Which file do I have to dowload the update and to have the latest build ? - phpvms.update.zip ? - phpvms.beta.zip ? I think I have to delete my actual phpVMS and install the beta version, haven't I? Thanks Stéphane
  13. Hello I did not enter any value in the My SQL database. phpVMS entered it itself. I will delete all the content of this table. Stéphane
  14. I set the unit to Kg in phpVMS and in FSACARS. This is the local config file in kg : # Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_DEFAULT_PRICE', 0.45); Config::Set('FUEL_SURCHARGE', '5'); # FSPassengers Settings # Units settings Config::Set('WeightUnit', '0'); # 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', '2'); # 0=liter 1=gal 2=kg 3=lbs Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message I deleted all the logs and i've done a new flight with fsacars in kg. This is the log : [2009/06/17 11:06:00] Flight IATA:FSW1000 Pilot Number:FSW001 Company ICAO:FSW Aircraft Type:B737 PAX:149 Aircraft Registration:FSW-BOA Departing Airport: LFPG Destination Airport: LFST Alternate Airport:LFSB Online: IVAO Route:RANUX EPL Flight Level:240 11:06 Zero fuel Weight: 48082 Kg, Fuel Weight: 20862 Kg 11:09 Parking Brakes off 11:09 Com1 Freq=122.80 11:15 VR= 156 Knots 11:15 V2= 165 Knots 11:15 Take-off 11:15 Take off Weight: 68517 Kg 11:15 Wind: 162? @ 008 Knots Heading: 087? 11:15 POS N48? 59? 51?? E002? 35? 20?? 11:15 N11 94 N12 94 11:15 TOC 11:15 Fuel Weight: 20433 Kg 11:15 Flaps:4 at 167 Knots 11:15 Gear Up: 169 Knots 11:16 Flaps:3 at 210 Knots 11:17 Flaps:0 at 242 Knots 11:30 Wind:315?@026 Knots Heading: 124? Ground Speed: 493 Knots Altitude 24229 ft 11:45 Wind:247?@010 Knots Heading: 062? Ground Speed: 343 Knots Altitude 13359 ft 11:47 Flaps:1 at 250 Knots 11:47 Flaps:2 at 250 Knots 11:47 Flaps:3 at 250 Knots 11:52 Flaps:4 at 220 Knots 11:52 Flaps:3 at 219 Knots 11:53 Flaps:4 at 211 Knots 11:54 Gear Down: 186 Knots 11:54 Flaps:5 at 172 Knots 11:54 Flaps:6 at 170 Knots 11:54 Flaps:7 at 154 Knots 11:54 Flaps:8 at 150 Knots 11:55 TouchDown:Rate -304 ft/min Speed: 133 Knots 11:56 Land 11:56 Wind:355?@002 Knots 11:56 Heading: 228? 11:56 Flight Duration: 00:41 11:56 Landing Weight: 66385 Kg 11:56 POS N48? 32? 12?? E007? 37? 32?? 11:59 Parking brakes on 11:59 Block to Block Duration: 00:50 11:59 Final Fuel: 18185 Kg 11:59 Spent Fuel: 2677 Kg 11:59 Flight Length: 244 NM 11:59 TOD Land Length: 244 NM Fuel price is set to 0.45 euro per kg. Same problem with the finances, fuel cost is incorrect. I found these lines in the "phpvms_fuelprices" table : May be the error is in the MySQL database. Thanks Stéphane
  15. Hello I modified my local config file. # Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_DEFAULT_PRICE', 0.45); Config::Set('FUEL_SURCHARGE', '5'); # FSPassengers Settings # Units settings Config::Set('WeightUnit', '0'); # 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 I deleted the log and I've done the same flight. I have the same problem before and after I modified the local config file. Fuel used : 6413 lbs Fuel (in the financial report) : - 25331 euros EDIT : Look at the log on the first page of this topic. I found this : 20:32 Final Fuel: 39034 Lbls 20:32 Spent Fuel: 6882 Lbls Is it normal that the unit used is "Lbls" ? Stéphane
  16. Hello I tried with LFPG (departure airport of the log above). This is the part about the fuel in my local config file : # Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_DEFAULT_PRICE', '0.45'); Config::Set('FUEL_SURCHARGE', '5'); # FSPassengers Settings # Units settings Config::Set('WeightUnit', '0'); # 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 As you can see, fuel price is 0.45 euro per lbs. I would like the fuel price to be 0.45 euros per lbs. Stéphane
  17. Hello The result is 3.9 Here are the values of my airports : Stéphane
  18. Hello Nabeel Do you find something to resolve this problem ? Thanks Stéphane Sky Away Virtual Airline
  19. Hello This is the FSACARS log : [2009/06/15 19:28:00] Flight IATA:FSW1000 Pilot Number:FSW001 Company ICAO:FSW Aircraft Type:B737 PAX:149 Aircraft Registration:FSW-BOA Departing Airport: LFPG Destination Airport: LFST Alternate Airport:LFSB Online: No Route:LANVI UL851 EPL Flight Level:240 19:28 Zero fuel Weight: 106000 Lbs, Fuel Weight: 45917 Lbs 19:28 Parking Brakes off 19:28 Com1 Freq=121.15 19:44 VR= 151 Knots 19:44 V2= 157 Knots 19:44 Take-off 19:44 Take off Weight: 150449 Lbs 19:44 Wind: 337? @ 008 Knots Heading: 267? 19:44 POS N48? 59? 47?? E002? 34? 01?? 19:44 N11 94 N12 94 19:44 TOC 19:44 Fuel Weight: 44433 Lb 19:44 Flaps:4 at 160 Knots 19:44 Gear Up: 161 Knots 19:45 Flaps:3 at 174 Knots 19:46 Flaps:0 at 209 Knots 19:49 Com1 Freq=128.10 19:59 Wind:268?@050 Knots Heading: 094? Ground Speed: 518 Knots Altitude 24117 ft 20:06 Com1 Freq=122.80 20:14 Wind:277?@037 Knots Heading: 059? Ground Speed: 396 Knots Altitude 17260 ft 20:19 Flaps:1 at 250 Knots 20:19 Flaps:2 at 249 Knots 20:19 Flaps:3 at 249 Knots 20:21 Com1 Freq=119.25 20:22 Flaps:4 at 221 Knots 20:22 Flaps:3 at 221 Knots 20:23 Flaps:4 at 199 Knots 20:23 Flaps:5 at 188 Knots 20:26 Gear Down: 176 Knots 20:26 Flaps:6 at 161 Knots 20:27 Flaps:7 at 153 Knots 20:27 Flaps:8 at 154 Knots 20:28 TouchDown:Rate -487 ft/min Speed: 129 Knots 20:28 Land 20:28 Wind:149?@005 Knots 20:28 Heading: 229? 20:28 Flight Duration: 00:44 20:28 Landing Weight: 145400 Lbs 20:28 POS N48? 32? 04?? E007? 37? 18?? 20:32 Parking brakes on 20:32 Block to Block Duration: 01:04 20:32 Final Fuel: 39034 Lbls 20:32 Spent Fuel: 6882 Lbls 20:32 Flight Length: 272 NM 20:32 TOD Land Length: 272 NM 20:32 Com1 Freq=120.70 I added Passengers for the pireps from the pilot center, so it is normal that there is not any value for an FSACARS log. However, the passengers number from FSACARS is correct in phpVMS and the passengers revenue is OK in the finances. As you can see, all is OK except the fuel. This my local config file about fuel : # Fuel info /* Default fuel price, for airports that don't have And the surcharge percentage. View the docs for more details about these */ Config::Set('FUEL_DEFAULT_PRICE', '0.45'); Config::Set('FUEL_SURCHARGE', '5'); # FSPassengers Settings # Units settings Config::Set('WeightUnit', '0'); # 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 Thanks Stéphane
  20. The ACARS log shows the correct amount of fuel. Moreover, this amount is correct in the pireps of phpvms, but the fuel expenses are not correct. When I send a PIREP from my pilot center, the fuel expenses are ok (number of lbs X 0.45). But when I use FSACARS, the fuel expenses are always wrong (about 23000 euros for 6000 lbs (price per lbs is 0.45 euro)) whereas the fuel amount (value from FSACARS) is correct in the PENDING PIREPS. Thanks Stéphane
  21. We've done 2 others flight and we have the same problems. The fuel expenses are about 23000 euros per flight whereas we only used about 7000 lbs of fuel per flight (the 2 flights are the same). The fuel cost is set up in 0.45 euro per lbs in the local_config.php file and all the fuel costs are set yo 0.45 euro per lbs for each airport. How can I do to resolve this error ? Thanks Stéphane ----------------------------------------------------------------------- EDIT : I found these line in the core/modules/ACARS/fsacars.php file # Get the fuel used # Using $_GET['fuel'] instead /*$pos = find_in_fsacars_log('Spent Fuel', $log); preg_match('/^.*Spent Fuel: (d*)/', $log[$pos], $matches); $fuelused = $_GET['fuel'];*/ When I open this file (fsacars.php) in a php editor, these lines appear as comments. I think it is the base of the problems. I will try to change this error. Stéphane
  22. Hello FSACARS is set up in lbs and phpvms in lbs too. I have only done one flight --> 1 pirep only (the others pilots use the old pirep system before phpVMS is correctly set up). I didn't find where i can recalculate the finances. Where is it ? "Reset PIREP finances" ? Stéphane
  23. Hello Today, I've done my first flight. I have an problem with the finances in phpVMS. phpVMS is set up in lbs for fuel. The price is 0.45 euro / lb and the fuel surcharge is set to 5. I've done this flight. I used 7813 lbs of fuel ==> 7813 X 0.45 = 3515.18 euros. In phpVMS, when I see the finances reports, the fuel costs are -23 630 euros. It is the first flight done and there are not any other flight. What do I have to do to reduce the fuel costs (and to use the good price for the next flights)? Thanks Stéphane
  24. Hello I found one solution : I created a scheduled flight : departure ZZZZ and arrival ZZZZ Now, with this schedules flight, all is working. I will look at FSACARS website. Thanks for your help. Stéphane
  25. This is an other flight which is not scheduled : [2009/06/07 14:25:00] Flight IATA:FLIGHT ? 58? 13?? E002? 26? 41?? 14:30 Parking brakes on 14:30 Block to Block Duration: 00:05 14:30 Final Fuel: 780 Lbls 14:30 Spent Fuel: 08 Lbls 14:30 Flight Length: 05 NM 14:30 TOD Land Length: 05 NM No more informations. Before I used phpVMS, I used FSACARS without any module. I have these errors since I use phpVMS. What must I do ? You said I have to check off one option to add the touchdown rate in the pireps, but what option do i have to check off ? Thanks Stéphane
×
×
  • Create New...