project QadFinancials > class BERSLine > method ValidateBCAndAdditionalUpdates


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BERSProcessor.ERSProcessFinishERSLine


program code (program6/bersline.p)

/* =================================================================================================== */
/* Method      : ValidateBCAndAdditionalUpdates                                                        */
/* =================================================================================================== */

assign oiReturnStatus = -98.

/* =================================================================================================== */
/* Validate Business component                                                                         */
/* =================================================================================================== */
<M-1 run ValidateBC  (output viFcReturnSuper (oiReturnStatus)) in BERSLine>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper <  0 then return.

/* =================================================================================================== */
/* Additional updates                                                                                  */
/* =================================================================================================== */
<M-2 run AdditionalUpdates  (output viFcReturnSuper (oiReturnStatus)) in BERSLine>
if viFcReturnSuper <> 0 then assign oiReturnStatus = viFcReturnSuper.
if viFcReturnSuper <  0 then return.

/* =================================================================================================== */
/* Return                                                                                              */
/* =================================================================================================== */
if oiReturnStatus = -98 then assign oiReturnStatus = 0.