Compare Amount in UI Field to Business Object data
Summary
Verify funds are available for a transactionContent
Hello,
I have a transaction screen where I want to verify that funds are available for a given transaction before saving.
The amount of the current transaction is compared to the amount of a predecessor transaction. If the predecessor transaction has other transactions booked against it, those transactions must also be included in the amount available calculation.
For example, the data in the Business Object may look like this:
docNumber fromDocNumber Amount
transA ---- $1000
transB transA 200
transC transA 100
Amount available is $700
The next Transaction comes in for 500. Checking for funds would iterate through the Business Object and summarize the remaining amount and make the compare of $700 and $500.