# Military flight

**URL:** <https://forum.phpvms.net/t/military-flight/4446>\
**Category:** phpVMS Legacy Support (v2/v5)\
**Created:** [April 6, 2011, 9:40am UTC](https://forum.phpvms.net/t/military-flight/4446 "2011-04-06T09:40:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CVV001](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cvv001/32/101_2.png) [@CVV001](https://forum.phpvms.net/u/CVV001)\
**Post date:** [April 6, 2011, 9:40am UTC](https://forum.phpvms.net/t/military-flight/4446/1 "2011-04-06T09:40:39Z")

</div>

I have set this flight types in core/app.config.php

Config::Set(

‘FLIGHT\_TYPES’, array(

‘P’=\>‘Passenger’,

‘C’=\>‘Cargo’,

‘H’=\>‘Charter’,

‘M’=\>‘Military’

)

In the admin center - airline operations - add schedule, the dropdown list show correctly the Military flight type and is recorded on the schedule.

When i bid this military flight and send the pirep with kACARS it is registered on the phpvms\_pireps table as a ‘P’ flight.

How can i solve this problem ? What is the program that receive the data from the bid and then write on the pireps table ?

TNX - Gianni

---

<div class="post-metadata">

**Author:** ![BBuchanan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@BBuchanan](https://forum.phpvms.net/u/BBuchanan)\
**Post date:** [April 11, 2011, 7:50am UTC](https://forum.phpvms.net/t/military-flight/4446/2 "2011-04-11T07:50:50Z")

</div>

> I have set this flight types in core/app.config.php
> 
> Config::Set(
> 
> ‘FLIGHT\_TYPES’, array(
> 
> ‘P’=\>‘Passenger’,
> 
> ‘C’=\>‘Cargo’,
> 
> ‘H’=\>‘Charter’,
> 
> ‘M’=\>‘Military’
> 
> )
> 
> In the admin center - airline operations - add schedule, the dropdown list show correctly the Military flight type and is recorded on the schedule.
> 
> When i bid this military flight and send the pirep with kACARS it is registered on the phpvms\_pireps table as a ‘P’ flight.
> 
> How can i solve this problem ? What is the program that receive the data from the bid and then write on the pireps table ?
> 
> TNX - Gianni

Well, in regards to this, why add the mil flight? Why not take one of the others and change it? For example, I don’t see military doing charter flights, I really don’t. So instead:

```
Config::Set(
'FLIGHT_TYPES', array(	
	'P'=>'Passenger',
	'C'=>'Cargo',
	'H'=>'Military'
)

```

Anyone care to pitch in?

---

<div class="post-metadata">

**Author:** ![nabeel](https://forum.phpvms.net/user_avatar/forum.phpvms.net/nabeel/32/2971_2.png) [@nabeel](https://forum.phpvms.net/u/nabeel)\
**Post date:** [April 11, 2011, 3:07pm UTC](https://forum.phpvms.net/t/military-flight/4446/3 "2011-04-11T15:07:00Z")

</div>

That’s probably the best way to do it, change the ‘Charter’ to just read "Military’ instead.

It was done that way to be able to change the name

---

<div class="post-metadata">

**Author:** ![BBuchanan](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@BBuchanan](https://forum.phpvms.net/u/BBuchanan)\
**Post date:** [April 11, 2011, 5:19pm UTC](https://forum.phpvms.net/t/military-flight/4446/4 "2011-04-11T17:19:24Z")

</div>

> That’s probably the best way to do it, change the ‘Charter’ to just read "Military’ instead.
> 
> It was done that way to be able to change the name

Awesome. Thank you Nabeel.

---

<div class="post-metadata">

**Author:** ![CVV001](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cvv001/32/101_2.png) [@CVV001](https://forum.phpvms.net/u/CVV001)\
**Post date:** [April 12, 2011, 1:31pm UTC](https://forum.phpvms.net/t/military-flight/4446/5 "2011-04-12T13:31:56Z")

</div>

> Awesome. Thank you Nabeel.

thank you for the advice, I do a test…

---

<div class="post-metadata">

**Author:** ![CVV001](https://forum.phpvms.net/user_avatar/forum.phpvms.net/cvv001/32/101_2.png) [@CVV001](https://forum.phpvms.net/u/CVV001)\
**Post date:** [June 28, 2011, 1:58pm UTC](https://forum.phpvms.net/t/military-flight/4446/6 "2011-06-28T13:58:50Z")

</div>

> That’s probably the best way to do it, change the ‘Charter’ to just read "Military’ instead.
> 
> It was done that way to be able to change the name

After two months test with ‘Military’ instead ‘Charter’ the pireps sent are always treated as PAX
