NEW3.02.01 · Released 12 September 2019
NEWfinPOWER Connect
Released in
3.02.01
12 September 2019
- Opened15 Aug
- Closed20 Aug
- Released12 Sep
Article 16257
Job J022753
Account Functions; new CalculateRebate function added
A new function "CalculateRebate" has been added to finBL.AccountFunctions, i.e. finBL.AccountFunctions.CalculateRebate.
This calculates the Rebate due for a Value, given parameters such as the method and period covered.
Parameters include:
- value As Decimal
- The Value.
- calculationMethod As isefinElementCreditCalculationMethod
- The Rebate Method.
- calculationLess As Double
- Extra percentage to deduct from the calculated Rebate, as in RO78 less 10%.
- dateStart As Date
- The start date of the overall period the Value applies to.
- dateEnd As Date
- The end date of the overall period the Value applies to.
- dateRebate As Date
- The date to calculate the Rebate as at. If prior to dateStart rebate=Value, if after dateEnd rebate=0.
- ByRef rebate As Decimal
- The Rebate calculated.
- Optional frequencyCycle As String = ""
- If "Proportional" method is used, the frequency of payments within the overall period.
- Optional ByRef message As String = ""
- Returns a message describing how the Rebate was calculated.