project QadFinancials > class BMfgExchangeRate > method GetMfgExchangeRateType

function returns character

Description

Determines the MFG/PRO exchange rate type corresponding to the financial's exchange rate type.


Parameters


icExchangeRateTypeinputcharacter


Internal usage


QadFinancials
method BMfgExchangeRate.ApiReplicateFromFinancials
method BMfgExchangeRate.LoadMfgData
method BMfgExchangeRate.UpdateMfgData


program code (program1/bmfgexchangerate.p)

if(icExchangeRateType = {&EXCHANGERATETYPE-INTRASTAT}) then
    return 'INSTAT':U.
else if (icExchangeRateType = {&EXCHANGERATETYPE-INVENTORY}) then
    return 'INV':U.
else if (icExchangeRateType = {&EXCHANGERATETYPE-STATUTORY}) then
    return 'SC':U.  
else
    return ''.