project QadFinancials > class BFRWChart > method AdditionalUpdates

Description

This method is part of the SetPublicTables flow.
When executed, data in the input class tables (prefix t_s) is validated and found correct, and copied into the class tables (prefix t_o).
This method can be extended to do updates that do not require a validation or that involve running business methods of other business classes. These classes should be started with ADD-TO-TRANSACTION = 'true'. Also make sure to add these classes in method StopExternalInstances.


Parameters


oiReturnStatusoutputinteger


Internal usage


unused


program code (program/bfrwchart.p)

MAIN_BLOCK:
do on error undo, throw:
    <ANCESTOR-CODE>

        /* =============================================================================================================== */
        /* Call a submethod that validate frwchart and all sub-tables                                                      */
        /* =============================================================================================================== */
        <M-1 run AdditionalUpdateCOACrossRef  (output viFcReturnSuper (oiReturnStatus)) in BFRWChart>
    
        if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
        if viFcReturnSuper < 0 then leave MAIN_BLOCK.


        <M-90 run AdditionalUpdateBudgetCompany  (output viFcReturnSuper (oiReturnStatus)) in BFRWChart>
        if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
        if viFcReturnSuper < 0 then leave MAIN_BLOCK.

end. /* MAIN_BLOCK */