Пример #1
0
 private function _toTargetAmount($input, CurrencyDisplay $currency)
 {
     //refactor to correct conversion
     if ($currency->getId() == $this->_currency) {
         return $input;
     }
     $input = round($currency->convertCurrencyTo($this->_currency, $input, false), 2);
     return $input;
 }