Reimplemented forms, added an overdue fix.

This commit is contained in:
James Cole
2015-02-08 01:15:15 +01:00
parent 3d01669cea
commit 434b4ded4a
24 changed files with 616 additions and 44 deletions

View File

@@ -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;
}
}