project QadFinancials > class BExchangeRate > method GetDefaultDerivedExchangeRateValues

Description

This method is use to get base currency and exchangerate type of current company.


Parameters


otStartDateoutputdateStart Date
ocExchangeRateTypeoutputcharacterExchange Rate Type.
ocBaseCurrencyoutputcharacterBase currency code.
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program1/bexchangerate.p)

<Q-2 run CompanyPropertyForAllData (all) (Read) (NoCache)
   (input viCompanyID, (CompanyId)
    output dataset tqCompanyPropertyForAllData) in BCompanyProperty >
    for first tqCompanyPropertyForAllData:
        ocBaseCurrency = tqCompanyPropertyForAllData.tcCurrencyCode.
    end.

assign
    otStartDate = today
    ocExchangeRateType={&EXCHANGERATETYPE-ACCOUNTING}.