project QadFinancials > class BCompany > business logic query CompanySSBySSCodeIDTypeForCAI

Description

This query will return the companies that match on based on the SharedSetID, SharedSetCode and SharedSetTypeCode


Parameters


iiCompanyIdintegerCompany id
iiSharedSetIDintegerSharedSet-id
icSharedSetCodecharacterShared Set Code
icSharedSetTypeCodecharacterSharedSetTypeCode


query condition


  each Company where
Company.Company_Id = iiCompanyId AND

      each CompanySharedSet (inner-join) where
CompanySharedSet.Company_Id = iiCompanyId AND
CompanySharedSet.Company_ID = Company.Company_ID AND
CompanySharedSet.SharedSet_ID = iiSharedSetID

          first SharedSet (inner-join) where
SharedSet.SharedSet_ID = CompanySharedSet.SharedSet_ID AND
SharedSet.SharedSetCode = icSharedSetCode AND
SharedSet.SharedSetTypeCode = icSharedSetTypeCode


query resultset tqCompanySSBySSCodeIDTypeForCAI


field namedata typedb fielddescription
tiCompany_IDintegerCompany.Company_IDRecord ID
tcCompanyCodecharacterCompany.CompanyCodeEntity Code
tlCompanyIsActivelogicalCompany.CompanyIsActiveActive
tiSharedSet_IDintegerSharedSet.SharedSet_IDRecord ID
tcSharedSetCodecharacterSharedSet.SharedSetCodeShared Set Code
tcSharedSetDescriptioncharacterSharedSet.SharedSetDescriptionShared Set Description
tlSharedSetIsActivelogicalSharedSet.SharedSetIsActiveActive
tcSharedSetTypeCodecharacterSharedSet.SharedSetTypeCodeShared Set Type


Internal usage


QadFinancials
method BAccountingInterface.FillProDsAccntBook