mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Reimplemented forms, added an overdue fix.
This commit is contained in:
@@ -122,4 +122,12 @@ class Amount
|
||||
|
||||
return $currency->code;
|
||||
}
|
||||
|
||||
public function getDefaultCurrency()
|
||||
{
|
||||
$currencyPreference = Prefs::get('currencyPreference', 'EUR');
|
||||
$currency = TransactionCurrency::whereCode($currencyPreference->data)->first();
|
||||
|
||||
return $currency;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user