project QadFinancials > class BFRWColumnGroup > method ValidateComponentPreMeasureType

Description

Validation for the measure type, amount type and unit type combinations.


Parameters


oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BFRWColumnGroup.ValidateComponentPre


program code (program1/bfrwcolumngroup.p)

/* ===================================================================================== */
/* Take each of the calculated fields and determine which value to store in the database */
/* ===================================================================================== */
for each t_sFRWCol where 
         t_sFRWCol.tc_Status <> 'D':U:
    
    for each t_sFRWColDet where
             t_sFRWColDet.tc_ParentRowid = t_sFRWCol.tc_Rowid and
             t_sFRWColDet.tc_Status <> 'D':U:
             
        /* call method to determine which value to store in the database */
        <M-24 run ValidateComponentPreCalculateMeasureType
           (input  t_sFRWColDet.FRWColDetMeasureType (icCalcMeasureType), 
            input  t_sFRWColDet.FRWColDetColumnType (icCalcColumnType), 
            input  t_sFRWColDet.FRWColDetUnitType (icCalcUnitType), 
            input  t_sFRWColDet.tc_Rowid (icRowid), 
            output viFcReturnSuper (oiReturnStatus)) in BFRWColumnGroup>
                  
        if viFcReturnSuper < 0 or viFcReturnSuper > 0 and oiReturnStatus = 0 then assign oiReturnStatus = viFcReturnSuper.
        
    end.
        
end. /* for each t_sFRWCol where */