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
bf16c9a42b
commit
7d1de0da17
@ -168,28 +168,6 @@ class SingleCategoryRepository extends ComponentRepository implements SingleCate
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* TODO this method is not optimal, and should be replaced.
|
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @param Category $category
|
|
||||||
* @param \Carbon\Carbon $start
|
|
||||||
* @param \Carbon\Carbon $end
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function spentInPeriod(Category $category, Carbon $start, Carbon $end)
|
|
||||||
{
|
|
||||||
$sum = $category->transactionjournals()->transactionTypes([TransactionType::WITHDRAWAL])->before($end)->after($start)->get(['transaction_journals.*'])
|
|
||||||
->sum(
|
|
||||||
'amount'
|
|
||||||
);
|
|
||||||
|
|
||||||
return $sum;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array with the following key:value pairs:
|
* Returns an array with the following key:value pairs:
|
||||||
*
|
*
|
||||||
|
@ -88,17 +88,6 @@ interface SingleCategoryRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getLatestActivity(Category $category);
|
public function getLatestActivity(Category $category);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @param Category $category
|
|
||||||
* @param \Carbon\Carbon $start
|
|
||||||
* @param \Carbon\Carbon $end
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function spentInPeriod(Category $category, Carbon $start, Carbon $end);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array with the following key:value pairs:
|
* Returns an array with the following key:value pairs:
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user