Ejemplo n.º 1
0
 /**
  * @param      $amount
  * @param null $currency
  *
  * @return string
  */
 public function formatAmount($amount, $currency = null)
 {
     return str_replace('.00', '', $this->moneyHelper->formatAmount($amount, $currency));
 }
Ejemplo n.º 2
0
 /**
  * Format the money amount to nice display form.
  *
  * @param integer     $amount
  * @param string|null $currency
  *
  * @return string
  */
 public function formatAmount($amount, $currency = null, $locale = null)
 {
     return $this->helper->formatAmount($amount, $currency, false, $locale);
 }
Ejemplo n.º 3
0
 /**
  * Format the money amount to nice display form.
  *
  * @param integer     $amount
  * @param string|null $currency
  *
  * @return string
  */
 public function formatAmount($amount, $currency = null)
 {
     return $this->helper->formatAmount($amount, $currency);
 }