mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 18:58:07 +00:00
Different budget query [skip ci]
This commit is contained in:
@@ -246,13 +246,12 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
->whereNotNull('budget_transaction_journal.budget_id');
|
->whereNotNull('budget_transaction_journal.budget_id');
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
->before($end)
|
|
||||||
->after($start)
|
->after($start)
|
||||||
|
->before($end)
|
||||||
->lessThan(0)
|
->lessThan(0)
|
||||||
->transactionTypes(['Withdrawal'])
|
->transactionTypes(['Withdrawal'])
|
||||||
->get();
|
->sum('transactions.amount');
|
||||||
|
return floatval($noBudgetSet) * -1;
|
||||||
return floatval($noBudgetSet->sum('amount')) * -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user