validation procedure
Description
Method that validates the bank account
Parameters
icTargetField | input | character | Value of the business field to validate. |
icTargetFieldName | input | character | Name of the business field to validate. |
icRowid | input | character | Contents of field tc_Rowid, if the target field is a field of a component temp-table. |
icGLTypeCode | input | character | GL Type Code |
ilActive | input | logical | Active flag |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program5/bcdocumentstatus.p)
if icGLTypeCode <> {&GLTYPECODE-BANK}
then do:
<M-1 run SetMessage
(input trim(#T-3'The bank account code must be of type $1.':250(964)T-3#) (icMessage),
input {&GLTYPECODE-BANK-TR} (icArguments),
input icTargetFieldName (icFieldName),
input icTargetField (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'QADFIN-2894':U (icFcMsgNumber),
input '' (icFcExplanation),
input '' (icFcIdentification),
input '' (icFcContext),
output viFcReturnSuper (oiReturnStatus)) in BCDocumentStatus>
assign oiReturnStatus = -1.
end.
if not ilActive
then do:
<M-2 run SetMessage
(input trim(#T-4'You can only specify active bank account codes.':250(965)t-4#) (icMessage),
input '':U (icArguments),
input icTargetFieldName (icFieldName),
input icTargetField (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'QADFIN-2895':U (icFcMsgNumber),
input '' (icFcExplanation),
input '' (icFcIdentification),
input '' (icFcContext),
output viFcReturnSuper (oiReturnStatus)) in BCDocumentStatus>
assign oiReturnStatus = -1.
end.