mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Method no longer used.
This commit is contained in:
@@ -54,27 +54,6 @@ class SingleCategoryRepository extends ComponentRepository implements SingleCate
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 earnedInPeriod(Category $category, Carbon $start, Carbon $end)
|
|
||||||
{
|
|
||||||
$sum = $category->transactionjournals()->transactionTypes([TransactionType::DEPOSIT])->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:
|
||||||
*
|
*
|
||||||
|
@@ -37,17 +37,6 @@ interface SingleCategoryRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function destroy(Category $category);
|
public function destroy(Category $category);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*
|
|
||||||
* @param Category $category
|
|
||||||
* @param \Carbon\Carbon $start
|
|
||||||
* @param \Carbon\Carbon $end
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function earnedInPeriod(Category $category, Carbon $start, Carbon $end);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array with the following key:value pairs:
|
* Returns an array with the following key:value pairs:
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user