Kelaos/Flights_COMP_2150 — Issue #1: [BUG] Adding Passengers
Author: Kelaos
Created: 2012-01-28 00:25:16+00:00
State: open

Can't always add Neo to the list so we end up with 2 errors:

1) Neo is not added, thus can't be removed. So Morpheus & Trinity are added and the 2's can't be added.

2) Neo is added, Trinity & Morpheus "failed" to add. Neo is removed. Then it claims it can't add Trin2 and Morph2. However the seating chart will show Trin & Trin2 in the list.

Error 1:
> run:
> PRINTING LIST:
>
> Sorry, it appears you selected a section that does not exist.
>	You selected section:2 but our plane only has 1 sections.
> It worked! Added the following people to the plane:
> ID:102 Name: Agent Smith2 Birthdate: 1972/8/12
> ID:103 Name: Agent Jones2 Birthdate: 1972/0/12
> NOOOOOOOOOOOOOOOOOOO! Failed to add:
> Neo Neo
> It worked! Added the following people to the plane:
> ID:100 Name: Trinity Trinity Birthdate: 1974/2/1
> ID:101 Name: Morpheus Morpheus Birthdate: 1962/0/24
> Unable to cancel selection
> NOOOOOOOOOOOOOOOOOOO! Failed to add:
> Trinity Trinity2
> Morpheus Morpheus2
> PRINTING FILLED SEATING CHART:
>
> Flight Number: 001
> Departure Date: 22/2/2012
> Section 1:
> Total Seats:4 Filled:0
> 1: [100 ] [101 ]
> 2: [102 ] [103 ]
>
>
> Flight Manifest:
> 103 2 Jones2 Agent 1972/00/12 (Window Preference)
> 101 1 Morpheus Morpheus 1962/00/24 (Aisle Preference)
> 102 2 Smith2 Agent 1972/08/12 (Aisle Preference)
> 100 1 Trinity Trinity 1974/02/01 (Window Preference)
> ===========
> BUILD SUCCESSFUL (total time: 0 seconds)

Error 2:
> run:
> PRINTING LIST:
>
> Sorry, it appears you selected a section that does not exist.
>	You selected section:2 but our plane only has 1 sections.
> It worked! Added the following people to the plane:
> ID:100 Name: Agent Smith2 Birthdate: 1972/8/12
> ID:101 Name: Agent Jones2 Birthdate: 1972/0/12
> It worked! Added the following people to the plane:
> ID:103 Name: Neo Neo Birthdate: 1970/1/1
> NOOOOOOOOOOOOOOOOOOO! Failed to add:
> Trinity Trinity
> > Morpheus Morpheus
> Removed:Neo Neo
> Cancelled seat for ID:-1 Name: Neo Neo Birthdate: 1970/1/1
> NOOOOOOOOOOOOOOOOOOO! Failed to add:
> Trinity Trinity2
> Morpheus Morpheus2
> PRINTING FILLED SEATING CHART:
>
> Flight Number: 001
> Departure Date: 22/2/2012
> Section 1:
> Total Seats:4 Filled:-1
> 1: [100 ] [101 ]
> 2: [102 ] [103 ]
>
>
> Flight Manifest:
> 101 1 Jones2 Agent 1972/00/12 (Window Preference)
> 100 1 Smith2 Agent 1972/08/12 (Aisle Preference)
> 102 2 Trinity Trinity 1974/02/01 (Window Preference)
> 103 2 Trinity2 Trinity 1974/02/01 (Window Preference)
> ===========
> BUILD SUCCESSFUL (total time: 0 seconds)