Documentation

Calculate board supplements and discounts

At this point we have the base price of the service for the base board of the contract. Now we have to process the board supplements and discounts informed at CNSR structure.

For every day of stay you have to process only the valid records, checking by:

  • Board requested
  • Dates
  • Operation day
  • Rate
  • Room type and characteristic

 One single day can only have one supplement or discount to apply per passenger. If there is more than one valid record the restriction criteria selection is:

  1. Rate codes if informed
  2. Room type
  3. Room characteristic

 If the board requested it is different than the base board of the contract and does not have a valid record for one day of the booking stay, then the entire valuation and booking is discarded and the service is not available.

 The application process is:

  • Is per pax: if the value is true then the record applies for each passenger of the service. If not, then only once per service.
  • Percentage: when the supplement or discount is informed with a percentage you have to calculate the amount on which apply it. When the [CNCT.Is per pax] and [CNSR.Is per pax] have the same value, then the amount is the informed in base price(*) CNCT. Otherwise, it is necessary to get the standard capacity of the room [CNHA.Standard capacity] to calculate the amount. When the [CNCT.Is per pax] is false and [CNSR.Is per pax] value is true, the percentage applies to [CNCT.Price(*)] divided by [CNHA.Standard capacity]. When the [CNCT.Is per pax] is true and [CNSR.Is per pax] value is false then the percentage applies to [CNCT.Price(*)] multiplied by [CNHA.Standard capacity].

 If exists a board supplement or discount for the base board, these kind of record applies only to the passengers that exceeds the standard capacity of the room.

The next examples will show the application process for the board supplements and discounts.

It is possible to receive supplements/discounts with value 0%. They must be applied as you would do it for others supplements/discounts.

(*) For calculating the final price using the new pricing structure, match the fields: Net price, Price and Amount on CNCT and CNSR structure.

Example:

Board supplement per amount 

Base price [CNCT]

CNHA

Standard capacity

Board supplement and discount [CNSR]

Board supplement price

Amount

Is per pax

Amount

Is per pax

1 pax

3 pax

100

N

Irrelevant

10

N

10

10

100

N

Irrelevant

10

Y

10

10+10+10

100

Y

Irrelevant

10

N

10

10

100

Y

Irrelevant

10

Y

10

10+10+10



► Example:

Board supplement per percentage

Base price [CNCT]

CNHA

Standard capacity

Board supplement and discount [CNSR]

Board supplement price

Amount

Is per pax

Percent.

Is per pax

1 pax

3 pax

80

N

2

20

N

20%80

20%80

80

N

2

20

Y

20%(80/2)

20%(80/2)+ 20%(80/2)+ 20%(80/2)

80

Y

2

20

N

20%(80*2)

20%(80*2)

80

Y

2

20

Y

20%80

20%80+

20%80+

20%80

Board supplement/discount per percentage