project QadFinancials > class BVAT > method InitInstance
Description
This method can be extended with code to execute when an instance of a business class is started.
PreCondition
This method is executed when a new instance of the business class is started, or when a draft instance is opened (in that case a new instance is started which is a copy of the draft instance).
Parameters
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
unused
program code (program/bvat.p)
<ANCESTOR-CODE>
if oiReturnStatus < 0
then return.
<M-1 run InitFixedData (output viFcReturnSuper (oiReturnStatus)) in BVAT>
assign oiReturnStatus = if (oiReturnStatus > 0 and
viFcReturnSuper = 0) or
oiReturnStatus < 0
then oiReturnStatus
else viFcReturnSuper.