You are on page 1of 9

Initial Date: 20140903 Last modification: 20140909 User: Vernica Nieto.

(Revenue)
Author: Alma Blackaller
Promo codes

What is promo code?

They are a record about a promotion with a discount in percent for a route or routes group in a
range of dates of sale and range of dates of flight.

Examples:

Flights from US have a discount 20% in fare type R and class services B, G if its bought between
September 2th 2014 and September 12
th
2014, and the travel must be between October 10
th
2014
and October 30
th
2014.

Flights between MEX and CUN have a discount 30% in fare type R and class services B, G if its
bought between September 20th 2014 and September 25
th
2014, and the travel must be between
October 30
th
2014 and November 3
th
2014.

Flights to TAM have a discount 50% in fare type R, AG and class services B, G, F if its b bought
between October 2th 2014 and October 3
th
2014, and the travel must be between November 10
th

2014 and March 30
th
2015.

Promo code information.

Promotion Code
Description
Region where the promotion is available:
1. Between 2 cities or stations : origin-destination.
2. From Station: we have an Origin, it needs calculate all destinations.
3. To Station: we have a Destination, it needs calculate all origins.
4. From a Country: we have a country (MEX/US): it needs calculate all origins belonging
to this country and all their destinations.
5. To a Country: we have a country (MEX/US) : it needs calculate all destinations
belonging to this country and all their destinations.
Fare Type
Service Class
Start date of Sale
End date of Sale
Start date of Flight
End date of Flight
Percent discount.
What do we want?

Home page, SDR Cheapest flights section: Show cheapest fares including promo code.

En Schedule, paint with a different color when there is a fare with promo code

How we can do it?
A. Application to Upload a file with promocodes.

The file will have 13 columns.

# Column Data type Null
allowed?
Description Example
1 PromotionCode Text Not null Cdigo de la promocin VMX20
2 Description Text Not null Promotion description 20% de
descuento
3 Origin Region Text Allow
null
Region from the travel starts
US or MX
USA

4 Destination Region Text Allow
null
Region to the travel ends
US or MX
USA
MEX
5 Origin Station Text Allow
null
Station from the travel starts

MEX
CUN
LAX
AGU
6 Destination Station Text Allow
null
Station to the travel ends

GDL
MWD
MZT
7 Fare Type Text Not null Clasification of Fare R
AG
CC
8 Service Class Text Not null Service Class B
F
G
9 Start sales date Date
(dia/mes/ao)
Not null Start of date range to buy with
promotion.
02/09/2014
10 End sales date Date
(dia/mes/ao)
Not null End of date range to buy with
promotion.
12/09/2014
11 Start travel date Date
(dia/mes/ao)
Not null Start of date range to fly. 10/10/2014
12 End travel date Date
(dia/mes/ao)
Not null End of date range to fly. 30/10/2014
13 Promotion discount Decimal Not null Percent of discount in
promotion
.2




Example:

P
r
o
m
o
t
i
o
n
C
o
d
e

D
e
s
c
r
i
p
t
i
o
n

O
r
i
g
i
n

R
e
g
i
o
n

D
e
s
t
i
n
a
t
i
o
n

R
e
g
i
o
n

O
r
i
g
i
n

S
t
a
t
i
o
n


D
e
s
t
i
n
a
t
i
o
n

S
t
a
t
i
o
n

F
a
r
e

T
y
p
e

S
e
r
v
i
c
e

C
l
a
s
s

S
t
a
r
t

s
a
l
e
s

d
a
t
e

E
n
d

s
a
l
e
s

d
a
t
e

S
t
a
r
t

t
r
a
v
e
l

d
a
t
e

E
n
d


t
r
a
v
e
l

d
a
t
e

P
r
o
m
o
t
i
o
n

d
i
s
c
o
u
n
t

VUS20 20%
descuen
to US
US R B 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .20
VUS20 20%
descuen
to US
US R G 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .20
VLAX25 25%
descuen
to LAX
LAX AG B 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .25
VLAX25 25%
descuen
to LAX
LAX R G 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .25
VMI20 20%
descuen
to
Merida
MEX MID AG B 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .20
VMI20 20%
descuen
to
Mrida
MEX MID AG G 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .20
VMI20 20%
descuen
to
Merida
TIJ MID AG B 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .20
VMI20 20%
descuen
to
Mrida
TIJ MID AG G 02/09/2014 10/09/2
014
10/10/2014 30/10/2014 .20
VMX10 10%
descuen
to MX
MX MX AG B 10/11/2014 10/12/2
014
2/02/2015 30/03/2015 .10
VMX10 10%
descuen
to MX
MX MX AG B 10/11/2014 10/12/2
014
2/02/2015 30/03/2015 .10


Validations

It can be the same promotion code for different regions or different stations.
It can be the same promotion code for the same route (region, stations) but different fare type or
different service class.

The row must have information in 1 or 2 of these columns.

3 Origin Region
4 Destination Region
5 Origin Station
6 Destination Station

The combinations can be:
Origin Region US Origin Station TIJ
Origin Region
Destination Region
MX
US
Origin Station
Destination Station
CUN
TIJ
Destination Region US Origin Station GDL
Destination Region
GDL
USA
Origin Region
Destination Station
MX
GDL
Destination Station OAX




B. Convert the information in routes

1. Between 2 cities or stations : origin-destination.

2. From Station: we have an Origin, it needs calculate all destinations.

3. To Station: we have a Destination, it needs calculate all origins.

4. From a Country: we have a country (MX/US): it needs calculate all origins belonging to
this country and all their destinations.

5. To a Country: we have a country (MX/US) : it needs calculate all destinations
belonging to this country and all their destinations.

Read promo code file information and convert the rows in order to get ROUTES

1. Promotion Code
2. Description
3. Origen
4. Destination
5. Fare Type
6. Service Class
7. Start date of Sale
8. End date of Sale
9. Start date of Flight
10. End date of Flight
11. Percent discount.

# Column Data type Null
allowed?
Description Example
1 PromotionCode Text Not null Cdigo de la promocin VMX20
2 Description Text Not null Promotion description 20% de
descuento
5 Origin Station Text Not null Station from the travel starts

LAX
AGU
6 Destination Station Text Not null Station to the travel ends

GDL
MWD

7 Fare Type Text Not null Clasification of Fare R
AG
CC
8 Service Class Text Not null Service Class B
F
G
9 Start sales date Date
(dia/mes/ao)
Not null Start of date range to buy with
promotion.
02/09/2014
10 End sales date Date
(dia/mes/ao)
Not null End of date range to buy with
promotion.
12/09/2014
11 Start travel date Date
(dia/mes/ao)
Not null Start of date range to fly. 10/10/2014
12 End travel date Date
(dia/mes/ao)
Not null End of date range to fly. 30/10/2014
13 Promotion discount Decimal Not null Percent of discount in
promotion
.2



C. Indicate that a fare has promocode

Fares in Sala de remates Database must have a new attribute to indicate that its a
promocode, keep the promotion code in the table.

D. Calculate promocode.

Read Promotions Promocode in Sala de Remates Database
Look for the promocode-fares-routes in Navitaire
Apply promocodes discounts in general fares
Consider fares with promocode within the cheapest fares in Sala de Remates.





Where do we can have as reference in Utilities?
Inicio PC


Primera pantalla


Caractersticas generales


Detalle

You might also like