public function getCurrencyDecimalPlaces() { if ($currency = Currency::find($this->getCurrency())) { return $currency->getDecimals(); } return 2; }