project QadFinancials > class BGrossIncomeAccounting > method ValidateComponent

Description

Write here all tests on database update (new / modify / delete) that cannot be coded with a validation mask.
The type of update can be found in tc_status (N/C/D).
If you find incorrect data, you must write an entry in tFcMessages (using SetMessage) and set the return status of this method to either +1 or -1.
Return status +1 = data will still be accepted.
Return status -1 = data will not be accepted.
This method is run from SetPublicTables, before transferring the received data into the class temp-tables.


Parameters


oiReturnStatusoutputinteger


Internal usage


unused


program code (program/bgrossincomeaccounting.p)

<ANCESTOR-CODE>
/* The rest of the validations will work with the resolved ID fields, so if anything went wrong here we better return */
if oiReturnStatus < 0
then return.

<M-66 run ValidateComponentPost  (output viFcReturnSuper (oiReturnStatus)) in BGrossIncomeAccounting>
if viFcReturnSuper <> 0 and oiReturnStatus >= 0
then assign oiReturnStatus = viFcReturnSuper.