Article Details
Id: | 16257 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.02.01 |
Opened: | 15/08/2019 |
Closed: | 20/08/2019 |
Released: | 12/09/2019 |
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.