This part or CalculationEngine is responsible for recalculating agency's commission value.
Because rounding is applied after calculating all service fees the initial commission calculation is not precise, i.e. instead of a fixed percentage of a sales price the commission is an approximation. This feature allows to recalculate the commission after rounding exactly as defined in the Data/Blank database without changing the result price.
Yield1 or RoundingFee
- Yield2 (agency commission)
- Yield2 is recalculated as actual commission percent of the sales price.
Yield1 or RoundingFee receives the difference between the original Yield2 value and the new one.
- Unchanged sales price with modified Yield1/RoundingFee and Yield2.
Options.Settings.General.Misc.Calculation.AgencyCommisionEnabled - Enables commission recalculation.
Options.Settings.General.Misc.Calculation.TouroperatorName - Used in combination with agency ID to retrieve agency commission percentage from the Data/Blank database.
PHOTEL in the Data/Blank agency data table must be set, e.g. 12 (12%), 12.5 (12.5%).
- Yield1/RoundingFee and Yield2 must be calculated in order to apply the agency commission recalculation.