convert setting('default.currency') to default_currency() helper function..
This commit is contained in:
@ -44,7 +44,7 @@ trait Currencies
|
||||
{
|
||||
$default_amount = $amount;
|
||||
|
||||
if ($from_code != setting('default.currency')) {
|
||||
if ($from_code != default_currency()) {
|
||||
$default_amount = $this->convertToDefault($amount, $from_code, $from_rate);
|
||||
}
|
||||
|
||||
@ -70,7 +70,7 @@ trait Currencies
|
||||
|
||||
public function getDefaultCurrency()
|
||||
{
|
||||
return !empty($this->default_currency_code) ? $this->default_currency_code : setting('default.currency');
|
||||
return !empty($this->default_currency_code) ? $this->default_currency_code : default_currency();
|
||||
}
|
||||
|
||||
public function setDefaultCurrency($code)
|
||||
|
Reference in New Issue
Block a user