phpvms / phpvms_v2

Virtual Airline Management (not maintained)
http://www.phpvms.net
BSD 3-Clause "New" or "Revised" License
41 stars 46 forks source link

Restrict schedules to ranks #22

Open nabeelio opened 13 years ago

nabeelio commented 13 years ago

Allow schedules to be restricted to a certain rank or above it, same as aircraft restrictions

Vansers commented 11 years ago

We could go like this, check schedule restriction first and then aircraft restriction? Want me to roll on this one?

nabeelio commented 11 years ago

Wow, opened two years ago lol

A schedule should have a minimum rank associated with it. If they're below that level, then they can't bid on it. If there's no rank, then it doesn't matter. If they file a PIREP against that schedule, it should show a note in the admin panel with the PIREP approve/deny, that their rank was below the minimum

The rank also needs to be added as a column to the schedule import/export

Oxymoron290 commented 11 years ago

sounds like a good feature, Let me know if you need any help Vansers

Vansers commented 11 years ago

Nabeel,

Since there is an aircraft rank restriction as well. I'm thinking about this, when the user adds the schedule, and there is a rank restriction dropdown, and the first value is "Use Aircraft Restriction", which it would check the aircraft, but if the user selected the specific min rank, then the schedule flight will be overrided by aircraft ranking restriction.

Is this okay?

Oxymoron290 commented 11 years ago

I like that. this does sound like more of a UI thing though, and most of the community heavily modifies the UI of phpVMS.

nabeelio commented 11 years ago

@Vansers that is a good idea, I like it - but aren't they almost the same? If it's b744 restricted to captain - if you set the min to "b744" or to "captain" - it'll be the same.

Vansers commented 11 years ago

@nshahzad - I'm not sure now, lol. What's your concept on this? Maybe should we change from the per aircraft restriction over to per schedule restrictions? (May be a pain in the a$$ for VA Admin's, but that seem it works that way better IMO)

Let me know what you think.

Oxymoron290 commented 11 years ago

So we over at wingsonair have pitched the idea around and we like Kyle's idea as well. Have a drop down for restrictions on schedules, and by default have "Use Aircraft Restriction". This will ignore all restrictions on the schedule and only go by the restrictions of the aircraft. However, if a user selects a minimum rank on a schedual, have that minimum rank as the override feature. In short - if the restriction is set on a schedual it is law.