project QadFinancials > class BMfgCurrency > method AdditionalUpdates

Description

This empty method allows to do additional updates on class temp-tables after records were received (and validated) from outside, using method SetPublicTables.
You can start instances of other business classes to do those updates.


Parameters


oiReturnStatusoutputinteger


Internal usage


unused


program code (program/bmfgcurrency.p)

    /* Update rounding method on system account control record */
    if viBMfgSystemAccCtrlCurrID = 0 or 
       viBMfgSystemAccCtrlCurrID = ?
    then do :
        <I-4 {bFcStartAndOpenInstance
            &ADD-TO-TRANSACTION = "true"
            &CLASS              = "BMfgSystemAccountControl"}>
    end.
    else do :
        <I-8 {bFcOpenInstance
            &CLASS           = "BMfgSystemAccountControl"}>
    end.
    
    <M-30 run UpdateRndMthd
       (input  tCopyCurrency (tCopyCurr), 
        output viFcReturnSuper (oiReturnStatus)) in BMfgSystemAccountControl>
    
    <I-6 {bFcCloseInstance
            &CLASS           = "BMfgSystemAccountControl"}>                                                                           
    if viLocalReturnStatus <> 0 then assign oiReturnStatus = viLocalReturnStatus.
    if viLocalReturnStatus < 0 
    then do :
        <M-9 run StopExternalInstances
           (output viFcReturnSuper (oiReturnStatus)) in BMfgCurrency>
        Return.
    end.
    

<ANCESTOR-CODE>