mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Method no longer used.
This commit is contained in:
parent
fc5b315af0
commit
efc9bc71a7
@ -416,28 +416,6 @@ class BudgetRepository extends ComponentRepository implements BudgetRepositoryIn
|
|||||||
return $paginator;
|
return $paginator;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @param Budget $budget
|
|
||||||
* @param Carbon $date
|
|
||||||
*
|
|
||||||
* @return float|null
|
|
||||||
*/
|
|
||||||
public function getLimitAmountOnDate(Budget $budget, Carbon $date)
|
|
||||||
{
|
|
||||||
$repetition = LimitRepetition::leftJoin('budget_limits', 'limit_repetitions.budget_limit_id', '=', 'budget_limits.id')
|
|
||||||
->where('limit_repetitions.startdate', $date->format('Y-m-d 00:00:00'))
|
|
||||||
->where('budget_limits.budget_id', $budget->id)
|
|
||||||
->first(['limit_repetitions.*']);
|
|
||||||
|
|
||||||
if ($repetition) {
|
|
||||||
return $repetition->amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Carbon $start
|
* @param Carbon $start
|
||||||
* @param Carbon $end
|
* @param Carbon $end
|
||||||
|
@ -208,16 +208,6 @@ interface BudgetRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50);
|
public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @param Budget $budget
|
|
||||||
* @param Carbon $date
|
|
||||||
*
|
|
||||||
* @return float
|
|
||||||
*/
|
|
||||||
public function getLimitAmountOnDate(Budget $budget, Carbon $date);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Carbon $start
|
* @param Carbon $start
|
||||||
* @param Carbon $end
|
* @param Carbon $end
|
||||||
|
Loading…
Reference in New Issue
Block a user