Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - helpinfo

Pages: [1]
1
Support for SIM ACARS / Re: SIMACAR problem after server migration
« on: July 28, 2019, 11:37:40 PM »
I have new problem

I upgraded my debian server 9 to debian 10 and now SIMACAR refuses to send Pirep.


do you have any idea what setting this may come from

Thanks

2
Support for SIM ACARS / SIMACAR problem after server migration
« on: May 06, 2019, 09:30:59 AM »
Hello

I have a problem I try to migrate all my system to a new machine but after migration SIMACAR refuses to communicate with the site.

Here is the situation :
SERV1 = Last Machine / SERV2 = New Machine

WEB+DB on SERV1 = OK
WEB on SERV1 and DB on SERV2 = OK
WEB+DB on SERV2 = KO

For INFO
Apache + iptable same config

ERROR message : report from logbook this flight is already .........

thank for avance
Best regards

3
Suggestions to add to VAM and SIM ACARS / Re: Charter cost
« on: August 16, 2018, 01:41:02 PM »
thank you for your thanks
 ;)

4
hello, not use ' or éàùê in aircraft name

5
Support for VAM 2.4 - 2.6 / Re: Charter Profit
« on: June 08, 2018, 09:41:59 PM »

6
Suggestions to add to VAM and SIM ACARS / Charter cost
« on: May 18, 2018, 12:16:40 AM »
Salut à tous, je vous fait un petit partage, j'ai mis en place le calcul pax et cargo des vols charter avec ajout dans le module finance.
c'est fonctionnel mais ça peu toujours être amélioré.


Hi all, I make you a little sharing, I set up the calculation pax and cargo charter flights with addition in the finance module.
it's functional but it can always be improved

OPEN calculate_flight_finances.php
FIND
Code: [Select]
// End income for regular flightsAFTER ADD
Code: [Select]
                // income section for charter flights
$sql_cost = "select * from vampireps where flightid='$flight_id'";
if (!$result_cost = $db->query($sql_cost)) {
die('There was an error running the query [' . $db->error . ']');
}
while ($row_cost = $result_cost->fetch_assoc()) {
// Income by PAX
$pax_char_price = 250000; // Your pax price for charter
$cargo_char_price = 2500; // Your cargo price for charter
$amount = $pax_char_price * $pax;
$descrip= 'Number of PAX:' .$pax.' .Charter Price per PAX:'.$pax_char_price;
if ($amount!=0)
{
$sql = "insert into va_finances (parameter_id,finance_date,amount,gvauser_id, description, report_type,report_id) values (99994,now(),$amount,$gvauser_id,'$descrip','$reporttype','$flight_id')";
if (!$result = $db->query($sql)) {
die('There was an error running the query [' . $db->error . ']');
}
}

$amount = $cargo_char_price * $cargo;
$descrip= 'Cargo:' .$cargo.' .Price per Cargo Unit:'.$cargo_char_price;
if ($amount!=0)
{
$sql = "insert into va_finances (parameter_id,finance_date,amount,gvauser_id, description, report_type,report_id) values (99993,now(),$amount,$gvauser_id,'$descrip','$reporttype','$flight_id')";
if (!$result = $db->query($sql)) {
die('There was an error running the query [' . $db->error . ']');
}
}
}
// End income section for charter flights
( replace value $pax_char_price and $cargo_char_price by your price)

OPEN va_global_financial_report.php
FIND
Code: [Select]
$sql = "SELECT 'Aircraft Repair' as description,sum(vaf.amount) as vaf_amount FROM  va_finances vaf  where vaf.parameter_id in (99996) group by parameter_id";
if (!$result8= $db->query($sql)) {
die('There was an error running the query  [' . $db->error . ']');
}
AFTER ADD
Code: [Select]
$sql = "SELECT 'Cargo in charter flight' as des,sum(vaf.amount) as vaf_amount FROM  va_finances vaf  where vaf.parameter_id in (99993) group by parameter_id";
if (!$result9= $db->query($sql)) {
die('There was an error running the query  [' . $db->error . ']');
}

$sql = "SELECT 'PAX in charter flight' as des,sum(vaf.amount) as vaf_amount FROM  va_finances vaf  where vaf.parameter_id in (99994) group by parameter_id";
if (!$result10= $db->query($sql)) {
die('There was an error running the query  [' . $db->error . ']');
}

OPEN languages/lang_en.php
FIND
Code: [Select]
define ('INCOME_REGULAR_ROUTES' , 'INCOME REGULAR ROUTES');
AFTER ADD
Code: [Select]
define ('INCOME_CHARTER_ROUTES' , 'INCOME CHARTER ROUTES');

Pages: [1]