Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Method no longer used.
James Colebf16c9a42bb4
diff --git a/app/Repositories/Category/SingleCategoryRepository.php b/app/Repositories/Category/SingleCategoryRepository.phpindex 5c3bf5481c..8393eb8689 100644--- a/app/Repositories/Category/SingleCategoryRepository.php+++ b/app/Repositories/Category/SingleCategoryRepository.php@@ -54,27 +54,6 @@ class SingleCategoryRepository extends ComponentRepository implements SingleCatereturn 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:*diff --git a/app/Repositories/Category/SingleCategoryRepositoryInterface.php b/app/Repositories/Category/SingleCategoryRepositoryInterface.phpindex 4b4a5e2f4e..ccad049bad 100644--- a/app/Repositories/Category/SingleCategoryRepositoryInterface.php+++ b/app/Repositories/Category/SingleCategoryRepositoryInterface.php@@ -37,17 +37,6 @@ interface SingleCategoryRepositoryInterface*/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:*