Article Details
Id:12173
Product:finPOWER Connect
Type:NEW
Version:2.02.00
Opened:19/08/2014
Closed:19/08/2014
Released:29/09/2014
Job: J013846

Business Layer; various new functions added to finBatchTransaction to handle Withholding Tax

Various new functions have been added to the Business Layer finBatchTransaction object to handle Withholding Tax.

The following functions are available to set Withholding tax details on a Deposit Account Interest Transaction.

Note, the Gross Value parameter expects a positive value for CREDIT interest, and a negative number for debit interest. This makes the functions easier to use, but remember that values set of the Transaction will end up a negative numbers for Credit Interest.

' Updates Withholding Tax details.
Public Function WithholdingTaxSet(withholdingTaxResidentStatus As isefinAccountTransactionResidentStatus, withholdingTaxRate As Double, withholdingTaxValue As Decimal) As Boolean

' Updates Transaction Value and Withholding Tax Value given the Gross Value and Withholding Tax Rate.
Public Function WithholdingTaxSet1(grossValue As Decimal, withholdingTaxResidentStatus As isefinAccountTransactionResidentStatus, withholdingTaxRate As Double) As Boolean

' Updates Transaction Value and Withholding Tax Rate given the Gross Value and Withholding Tax Value.
Public Function WithholdingTaxSet2(grossValue As Decimal, withholdingTaxResidentStatus As isefinAccountTransactionResidentStatus, withholdingTaxValue As Decimal) As Boolean

' Updates Transaction Value and Withholding Tax details, validating information supplied.
Public Function WithholdingTaxSet3(grossValue As Decimal, withholdingTaxResidentStatus As isefinAccountTransactionResidentStatus, withholdingTaxRate As Double, withholdingTaxValue As Decimal) As Boolean

' Updates Transaction Value and Withholding Tax details from the Account (and Date) loaded on the Transaction.
Public Function WithholdingTaxSetFromAccount(grossValue As Decimal) As Boolean

For more information refer to Business Layer help.