Skip to content

Firefly III: a personal finances manager

Method no longer used.

James Cole64dbb1424141
diff --git a/app/Helpers/Report/ReportHelper.php b/app/Helpers/Report/ReportHelper.php
index 27b94e9cb4..c677a1bfac 100644
--- a/app/Helpers/Report/ReportHelper.php
+++ b/app/Helpers/Report/ReportHelper.php
@@ -384,7 +384,6 @@ class ReportHelper implements ReportHelperInterface
$diffLine->setRole(BalanceLine::ROLE_DIFFROLE);
foreach ($accounts as $account) {
- //$spent = $this->query->spentNoBudget($account, $start, $end);
$entry = $spentData->filter(
function (TransactionJournal $model) use ($budget, $account) {
return $model->account_id == $account->id && is_null($model->budget_id);
diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php
index 638b3d0129..208c4e8ff2 100644
--- a/app/Helpers/Report/ReportQuery.php
+++ b/app/Helpers/Report/ReportQuery.php
@@ -19,26 +19,6 @@ use Illuminate\Support\Collection;
class ReportQuery implements ReportQueryInterface
{
- /**
- * @param Account $account
- * @param Carbon $start
- * @param Carbon $end
- *
- * @return string
- */
- public function spentNoBudget(Account $account, Carbon $start, Carbon $end)
- {
- return
- Auth::user()->transactionjournals()
- ->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
- ->leftJoin('budget_transaction_journal', 'budget_transaction_journal.transaction_journal_id', '=', 'transaction_journals.id')
- ->transactionTypes([TransactionType::WITHDRAWAL])
- ->where('transactions.account_id', $account->id)
- ->before($end)
- ->after($start)
- ->whereNull('budget_transaction_journal.budget_id')->get(['transaction_journals.*'])->sum('amount');
- }
-
/**
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
* grouped by month like so: "2015-01" => '123.45'
diff --git a/app/Helpers/Report/ReportQueryInterface.php b/app/Helpers/Report/ReportQueryInterface.php
index 182b35d8bd..8bb0c43762 100644
--- a/app/Helpers/Report/ReportQueryInterface.php
+++ b/app/Helpers/Report/ReportQueryInterface.php
@@ -39,15 +39,6 @@ interface ReportQueryInterface
*/
public function expense(Collection $accounts, Carbon $start, Carbon $end);
- /**
- * @param Account $account
- * @param Carbon $start
- * @param Carbon $end
- *
- * @return string
- */
- public function spentNoBudget(Account $account, Carbon $start, Carbon $end);
-
/**
* Returns an array of the amount of money spent in the given accounts (on withdrawals, opening balances and transfers)
* grouped by month like so: "2015-01" => '123.45'