project QadFinancials > class BDDocumentStatus > method Calculate

Description

Add code here to initialize the calculated fields of the class temp-tables after loading existing records from the application database.


Parameters


oiReturnStatusoutputinteger


Internal usage


unused


program code (program/bddocumentstatus.p)

<ANCESTOR-CODE>

for each tDDocumentStatus:
    <Q-2 assign vlFcQueryRecordsAvailable = DDocumentByTypeStatus (NoCache)
          (input viCompanyId, (CompanyId)
           input tDDocumentStatus.DDocumentStatusStatus, (DDocumentStatus)
           input tDDocumentStatus.DDocumentStatusDocType, (DDocumentType)
           input tDDocumentStatus.BankGL_ID, (GLID)) in BDDocument >

    assign tDDocumentStatus.tlDDocumentStatusIsReferenced = vlFcQueryRecordsAvailable <> false.
end.