project QadFinancials > class BOpenItemAdjustment > method GetExchangeRateAndScale


Parameters


iiFromCurrencyIdinputinteger
icFromCurrencyCodeinputcharacter
iiToCurrencyIdinputinteger
icToCurrencyCodeinputcharacter
iiExchangeRateTypeIdinputinteger
icExchangeRateTypeCodeinputcharacter
ilisCustomerinputlogical
itInvoiceDateinputdate
itPostingDateinputdate
icInvoiceTypeinputcharacter
odExchangeRateoutputdecimal
odExchangeRateScaleoutputdecimal
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BOpenItemAdjustment.OIAdjCommitSubCInvoice
method BOpenItemAdjustment.OIAdjCommitSubCInvoiceCreateWHT
method BOpenItemAdjustment.OIAdjCommitSubDInvoice


program code (program1/bopenitemadjustment.p)

/* Get the correct Exchange Rate Date to use for the Open Item*/
<M-65 run GetExchangeRateDateToUse
   (input  ilisCustomer (ilisCustomer), 
    input  itPostingDate (itPostingDate), 
    input  itInvoiceDate (itInvoiceDate), 
    input  icInvoiceType (icInvoiceType), 
    output vtExchangeRateDate (otExchangeRateDate), 
    output viFcReturnSuper (oiReturnStatus)) in BOpenItemAdjustment>

<M-19 run GetExchangeRate
   (input  ? (iiCompanyID), 
    input  iiFromCurrencyId (iiFromCurrencyID), 
    input  icFromCurrencyCode (icFromCurrencyCode), 
    input  iiToCurrencyId (iiToCurrencyID), 
    input  icToCurrencyCode (icToCurrencyCode), 
    input  iiExchangeRateTypeId (iiExchangeRateTypeID), 
    input  icExchangeRateTypeCode (icExchangeRateTypeCode), 
    input  vtExchangeRateDate (itValidityDate), 
    output odExchangeRate (odExchangeRate), 
    output odExchangeRateScale (odExchangeScaleFactor), 
    output oiReturnStatus (oiReturnStatus)) in BOpenItemAdjustment>