Apr 15, 2016

Table ExchRate 변환하여 보여주기 및 입력

public edit SalesFixedExchRate editFixedExchRate(boolean set, SalesFixedExchRate _exchRate)
{
    ExchangeRateHelper exchangeRateHelper = ExchangeRateHelper::newCurrency(Ledger::primaryLedger(CompanyInfo::findDataArea(curext()).RecId), this.CurrencyCode);

    if (set)
    {
        this.FixedExchRate = exchangeRateHelper.prepareExchangeRateForStorage(_exchRate);
    }
    else
    {
        _exchRate = exchangeRateHelper.displayStoredExchangeRate(this.FixedExchRate);
    }

    return _exchRate;
}

No comments:

Post a Comment