Article Details
Id:11497
Product:finPOWER Connect
Type:NEW
Version:2.00.01
Opened:05/11/2013
Closed:19/11/2013
Released:20/11/2013
Job: J012465

Business Layer; Add GetAvailableCredit function to finAccount

A new function GetAvailableCredit has been added to finAccount in the finPOWER Connect Business Layer.

This allows a quick and easy way to get the Available Credit from an Account, optionally as at a date. This function includes two import parameters, dateAsAt and includeAll, an explanation is noted below.

If dateAsAt = Nothing
Credit Limit as at Today
Balance including ALL transactions
ALL Pending Withdrawals that are still "Pending"
ALL funds that aren't cleared today, including future payments

If dateAsAt specified, includeAll is True
Credit Limit as at date
Balance including ALL transactions
ALL Pending Withdrawals that are still "Pending"
ALL funds that aren't cleared today, including future payments

If dateAsAt specified, includeAll is False
Credit Limit as at date
Balance as at date
Pending Withdrawals pending on that date
Funds that aren't cleared today - would exclude future transactions as not in balance

The Account Withdrawal and Transfer wizards as well as Account Warnings now use this function to calculate the Available Credit.