project QadFinancials > class BCompanyProperty > method ValRevRecMinim

validation procedure

Description

Validate that the Minimum percentage of completion cannot exceed 100 %.


Parameters


idTargetFieldinputdecimalValue of the business field to validate.
icTargetFieldNameinputcharacterName of the business field to validate.
icRowidinputcharacterContents of field tc_Rowid, if the target field is a field of a component temp-table.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
validation on tCompanyProperty.CompanyPropertyRevRecMinim


program code (program5/bcompanyproperty.p)

if idTargetField > 100
then do:
    assign vcMessage      = trim(#T-2'The minimum percentage of completion cannot exceed 100 %.':250(1310)t-2#)
           oiReturnStatus = -1.
    <M-1 run SetMessage (input  vcMessage (icMessage),
                     input  '':U (icArguments),
                     input  icTargetFieldName (icFieldName),
                     input  string(idTargetField) (icFieldValue),
                     input  'E':U (icType),
                     input  3 (iiSeverity),
                     input  icRowid (icRowid),
                     input  'QADFIN-1495':U (icFcMsgNumber),
                     input  '' (icFcExplanation),
                     input  '' (icFcIdentification),
                     input  '' (icFcContext),
                     output viFcReturnSuper (oiReturnStatus)) in BCompanyProperty>
end.