project QadFinancials > class BOpenItemAdjustment > method GetCompanySetting

Description

This method will retrieve the Open Item Cross Entity Allowed flag for the working entity


Parameters


iiCompanyIdinputintegerCompany ID
olCompanyPropertyIsOICrossCyoutputlogicalOpen Item Cross Entity Allowed flag
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program7/bopenitemadjustment.p)

/* replace unknown values */
if iiCompanyId = ? or iiCompanyId = 0
then assign iiCompanyId = viCompanyId.

<Q-94 run CompanyPropertyByIDAllInfo (all) (Read) (NoCache)
   (input iiCompanyId, (CompanyId)
    output dataset tqCompanyPropertyByIDAllInfo) in BCompanyProperty >
find first tqCompanyPropertyByIDAllInfo where
           tqCompanyPropertyByIDAllInfo.tiCompany_ID = iiCompanyId
           no-lock.
if available tqCompanyPropertyByIDAllInfo
then assign olCompanyPropertyIsOICrossCy = tqCompanyPropertyByIDAllInfo.tlCompanyPropertyIsOICrossCy.