Parameters
iiCompanyID | input | integer | Company ID |
itCInvoiceDate | input | date | |
itCInvoicePostingDate | input | date | |
iiFromCurrencyId | input | integer | |
icFromCurrencyCode | input | character | |
iiToCurrencyId | input | integer | |
icToCurrencyCode | input | character | |
iiExchangeRateTypeId | input | integer | |
icExchangeRateTypeCode | input | character | |
odCInvoiceExchangeRate | output | decimal | |
odCInvoiceRateScale | output | decimal | |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program1/bcinvoicejournalentry.p)
if vlCompPropIsAPUseInvDate = true
then assign vtExchangeRateDate = itCInvoiceDate.
else assign vtExchangeRateDate = itCInvoicePostingDate.
<M-8 run GetExchangeRate
(input iiCompanyID (iiCompanyID),
input iiFromCurrencyId (iiFromCurrencyID),
input icFromCurrencyCode (icFromCurrencyCode),
input iiToCurrencyId (iiToCurrencyID),
input icToCurrencyCode (icToCurrencyCode),
input iiExchangeRateTypeId (iiExchangeRateTypeID),
input icExchangeRateTypeCode (icExchangeRateTypeCode),
input vtExchangeRateDate (itValidityDate),
output odCInvoiceExchangeRate (odExchangeRate),
output odCInvoiceRateScale (odExchangeScaleFactor),
output viFcReturnSuper (oiReturnStatus)) in BCInvoiceJournalEntry>
if viFcReturnSuper < 0 or (viFcReturnSuper > 0 and oiReturnStatus = 0)
then assign oiReturnStatus = viFcReturnSuper.
if oiReturnStatus < 0
then return.