project QadFinancials > class BCompany > method GetAdditionalGLNumbering

Description

Retrieve the Additional GL Numbering Setting of the source entity that was selected


Parameters


iiCompanyIDinputinteger
icCompanyCodeinputcharacter
olCompanyPropertyIsAddNrYrlyoutputlogicalCompany Additional GL Numbering Is Defined Yearly
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program6/bcompany.p)

/* =================================================================================== */
/* Retrieve the Additional GL Numbering Setting of the source entity that was selected */
/* =================================================================================== */


/* Initial value for output parameter */
assign olCompanyPropertyIsAddNrYrly = false.

/* Leave when no input parameters where passed */
if (iiCompanyID   = ? or iiCompanyID   = 0) and
   (icCompanyCode = ? or icCompanyCode = '':U)
then return.

/* Exception Handling */
assign oiReturnStatus = -98.

/* Retrieve CompanyPropertyIsAddNrYrly */
<Q-1 run CompanyPropertyByCompanyCode (all) (Read) (NoCache)
   (input iiCompanyID, (CompanyId)
    input icCompanyCode, (CompanyCode)
    input '':U, (DomainCode)
    output dataset tqCompanyPropertyByCompanyCode) in BCompanyProperty >
find first tqCompanyPropertyByCompanyCode no-error.
if available tqCompanyPropertyByCompanyCode
then assign olCompanyPropertyIsAddNrYrly = tqCompanyPropertyByCompanyCode.tlCompanyPropertyIsAddNrYrly.

/* Exception Handling */
if oiReturnStatus = -98
then assign oiReturnStatus = 0.