Rounding

Responsibility

This part of CalculationEngine is responsible for rounding final service's price according to specified rules.

Input

Process

Output

Config

Examples

Hotel per booking Calculate yield1 (6%) on base price per booking, add yield2 (12%) to the result and round the calculated price (booking) down to the nearest integer number. CURRENTLY NOT SUPPORTED, BOOK is treated as sum of all RATES (rooms).

Yield                                                                    Calculation
Name     Type    SubType    IncludeIn    CalculateOn    CalculateType    Fee1Amount    bFee1Percent
=====================================================================    ==========================
Yield1   BAS     NULL       BPR          BPR            BOOK                   6,00               1
Yield2   BAS     NULL       BPR          CPR            BOOK                  12,00               1

Rounding
Type  MagicNumberSuffix  MagicNumberLower  MagicNumberUpper  RoundType  RoundPerType  RoundYield_ID
===================================================================================================
H     NULL               NULL              NULL              FLOOR      BOOK          Yield1 ID

Example
=FLOOR(196,00 * 1,06 * 1,12; 1)  Result: 232,00 EUR

Hotel per rate Calculate yield1 (6%) on base price per rate, add yield2 (12%) the result per rate and round the calculated price per rate down to the nearest integer number.

Yield                                                                    Calculation
Name     Type    SubType    IncludeIn    CalculateOn    CalculateType    Fee1Amount    bFee1Percent
=====================================================================    ==========================
Yield1   BAS     NULL       BPR          BPR            BOOK                   6,00               1
Yield2   BAS     NULL       BPR          CPR            BOOK                  12,00               1

Rounding
Type  MagicNumberSuffix  MagicNumberLower  MagicNumberUpper  RoundType  RoundPerType  RoundYield_ID
===================================================================================================
H     NULL               NULL              NULL              FLOOR      BOOK          Yield1 ID

Example
=FLOOR(49,00 * 1,06 * 1,12; 1)  Final result (per booking): 58,00 * 4 = 232,00 EUR

Dynamic Packaging per passenger Calculate yield1 (6%) on base price per passenger, add yield2 (12%) to the result per passenger and round the calculated price per passenger down to the nearest integer number.

Yield                                                                    Calculation
Name     Type    SubType    IncludeIn    CalculateOn    CalculateType    Fee1Amount    bFee1Percent
=====================================================================    ==========================
Yield1   BAS     NULL       BPR          BPR            PAX                    6,00               1
Yield2   BAS     NULL       BPR          CPR            PAX                   12,00               1

Rounding
Type  MagicNumberSuffix  MagicNumberLower  MagicNumberUpper  RoundType  RoundPerType  RoundYield_ID
===================================================================================================
P     NULL               NULL              NULL              FLOOR      PAX           Yield1 ID

Example
=FLOOR(196,00 * 1,06 * 1,12; 8)  Result: 232,00 EUR


Library/CalculationEngine/Rounding (last edited 2009-05-27 13:20:02 by 194)

UA-140066296-2