mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-20 11:33:59 +00:00
Some TODO's for the future.
This commit is contained in:
@@ -94,6 +94,7 @@ class PiggyBankController extends Controller
|
||||
|
||||
// get currency:
|
||||
$currency = app('amount')->getDefaultCurrency();
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepos->getMetaValue($piggyBank->account, 'currency_id');
|
||||
if ($currencyId > 0) {
|
||||
$currency = $this->currencyRepos->findNull($currencyId);
|
||||
@@ -120,6 +121,7 @@ class PiggyBankController extends Controller
|
||||
|
||||
// get currency:
|
||||
$currency = app('amount')->getDefaultCurrency();
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepos->getMetaValue($piggyBank->account, 'currency_id');
|
||||
if ($currencyId > 0) {
|
||||
$currency = $this->currencyRepos->findNull($currencyId);
|
||||
@@ -298,6 +300,7 @@ class PiggyBankController extends Controller
|
||||
{
|
||||
$amount = $request->get('amount') ?? '0';
|
||||
$currency = app('amount')->getDefaultCurrency();
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepos->getMetaValue($piggyBank->account, 'currency_id');
|
||||
if ($currencyId > 0) {
|
||||
$currency = $this->currencyRepos->findNull($currencyId);
|
||||
@@ -340,6 +343,7 @@ class PiggyBankController extends Controller
|
||||
{
|
||||
$amount = $request->get('amount') ?? '0';
|
||||
$currency = app('amount')->getDefaultCurrency();
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepos->getMetaValue($piggyBank->account, 'currency_id');
|
||||
if ($currencyId > 0) {
|
||||
$currency = $this->currencyRepos->findNull($currencyId);
|
||||
@@ -383,6 +387,7 @@ class PiggyBankController extends Controller
|
||||
$repetition = $this->piggyRepos->getRepetition($piggyBank);
|
||||
// get currency:
|
||||
$currency = app('amount')->getDefaultCurrency();
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepos->getMetaValue($piggyBank->account, 'currency_id');
|
||||
if ($currencyId > 0) {
|
||||
$currency = $this->currencyRepos->findNull($currencyId);
|
||||
@@ -403,6 +408,7 @@ class PiggyBankController extends Controller
|
||||
$repetition = $this->piggyRepos->getRepetition($piggyBank);
|
||||
// get currency:
|
||||
$currency = app('amount')->getDefaultCurrency();
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepos->getMetaValue($piggyBank->account, 'currency_id');
|
||||
if ($currencyId > 0) {
|
||||
$currency = $this->currencyRepos->findNull($currencyId);
|
||||
|
Reference in New Issue
Block a user