project QadFinancials > class BCompanyProperty > business logic query CompanyPropertyForSharedSetDet

Description

CompanyPropertyForSharedSetDetails:
Get company data that is required for calculating exchange rates
Note this query holds a join to the shared-set with a condition on the shared-set-type
Better do not extend this query and do not call this query from elsewhere


Parameters


iiCompanyIDintegercompany id
icSharedSetTypeCodecharacter


query condition


  each CompanyProperty where
CompanyProperty.Company_ID = iiCompanyId

      first Company (inner-join) where
Company.Company_Id = iiCompanyId AND
Company.Company_ID = CompanyProperty.Company_ID AND

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

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

          first DomainProperty (inner-join) where
DomainProperty.Domain_ID = Company.Domain_ID AND

              first Currency2 (inner-join) where
Currency2.Currency_ID = DomainProperty.Currency_ID AND

      first Currency1 (inner-join) where
Currency1.Currency_ID = CompanyProperty.Currency_ID AND


query resultset tqCompanyPropertyForSharedSetDet


field namedata typedb fielddescription
tlDomainPropertyIsStatutorylogicalDomainProperty.DomainPropertyIsStatutoryStatutory Currency Enabled
tiCompany_IDintegerCompanyProperty.Company_IDLink to Company
tiCompanyProperty_IDintegerCompanyProperty.CompanyProperty_IDRecord ID
tiLCCurrency_IDintegerCompanyProperty.Currency_IDBase Currency
tcLCCurrencyCodecharacterCurrency1.CurrencyCodeCurrency Code
tcCompanyCodecharacterCompany.CompanyCodeEntity Code
tiDomain_IDintegerCompany.Domain_IDDomain
tiDomainProperty_IDintegerDomainProperty.DomainProperty_IDRecord ID
tiCCCurrency_IDintegerDomainProperty.Currency_IDBase Currency
tcCCCurrencyCodecharacterCurrency2.CurrencyCodeCurrency Code
tiSharedSet_IDintegerCompanySharedSet.SharedSet_IDShared Set
tcSharedSetTypeCodecharacterSharedSet.SharedSetTypeCodeShared Set Type


Internal usage


QadFinancials
method business.GetExchangeRate