Calculating whether to apply an exception code
The formula that you define for a custom exception code determines whether a batch process, such as a bill run or payment posting, returns that exception. For example, you might write a formula that returns an exception for any bill with an amount greater than $10,000.
Exception code calculation formulas use the oAccount
object (an instance of the Hansen.Billing.Bill
class) to set IsException
to either True or
False. If the formula returns True, Infor Public Sector flags
the account as an exception and shows it on the batch process's associated InfoViewer.
If the formula returns False, Infor Public Sector doesn't flag the bill as an exception.
Example
This CreateBills exception formula will return an exception if the bill amount is greater than $10,000:
If oBill.BillAmount > 10000.00 Then
IsException = True
Else
IsException = False
End If