mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-04 05:15:39 +00:00 
			
		
		
		
	Fixed a lot of tests and associated code.
This commit is contained in:
		@@ -28,7 +28,6 @@ use FireflyIII\Http\Controllers\Controller;
 | 
			
		||||
use FireflyIII\Repositories\Budget\BudgetRepositoryInterface;
 | 
			
		||||
use FireflyIII\Support\CacheProperties;
 | 
			
		||||
use Illuminate\Support\Collection;
 | 
			
		||||
use Navigation;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Class BudgetController.
 | 
			
		||||
@@ -88,7 +87,7 @@ class BudgetController extends Controller
 | 
			
		||||
        $data       = $repository->getBudgetPeriodReport($budgets, $accounts, $start, $end);
 | 
			
		||||
        $data[0]    = $repository->getNoBudgetPeriodReport($accounts, $start, $end); // append report data for "no budget"
 | 
			
		||||
        $report     = $this->filterBudgetPeriodReport($data);
 | 
			
		||||
        $periods    = Navigation::listOfPeriods($start, $end);
 | 
			
		||||
        $periods    = app('navigation')->listOfPeriods($start, $end);
 | 
			
		||||
 | 
			
		||||
        $result = view('reports.partials.budget-period', compact('report', 'periods'))->render();
 | 
			
		||||
        $cache->store($result);
 | 
			
		||||
 
 | 
			
		||||
@@ -28,7 +28,6 @@ use FireflyIII\Models\Category;
 | 
			
		||||
use FireflyIII\Repositories\Category\CategoryRepositoryInterface;
 | 
			
		||||
use FireflyIII\Support\CacheProperties;
 | 
			
		||||
use Illuminate\Support\Collection;
 | 
			
		||||
use Navigation;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Class CategoryController.
 | 
			
		||||
@@ -58,7 +57,7 @@ class CategoryController extends Controller
 | 
			
		||||
        $data       = $repository->periodExpenses($categories, $accounts, $start, $end);
 | 
			
		||||
        $data[0]    = $repository->periodExpensesNoCategory($accounts, $start, $end);
 | 
			
		||||
        $report     = $this->filterReport($data);
 | 
			
		||||
        $periods    = Navigation::listOfPeriods($start, $end);
 | 
			
		||||
        $periods    = app('navigation')->listOfPeriods($start, $end);
 | 
			
		||||
        $result     = view('reports.partials.category-period', compact('report', 'periods'))->render();
 | 
			
		||||
 | 
			
		||||
        $cache->store($result);
 | 
			
		||||
@@ -89,7 +88,7 @@ class CategoryController extends Controller
 | 
			
		||||
        $data       = $repository->periodIncome($categories, $accounts, $start, $end);
 | 
			
		||||
        $data[0]    = $repository->periodIncomeNoCategory($accounts, $start, $end);
 | 
			
		||||
        $report     = $this->filterReport($data);
 | 
			
		||||
        $periods    = Navigation::listOfPeriods($start, $end);
 | 
			
		||||
        $periods    = app('navigation')->listOfPeriods($start, $end);
 | 
			
		||||
        $result     = view('reports.partials.category-period', compact('report', 'periods'))->render();
 | 
			
		||||
 | 
			
		||||
        $cache->store($result);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user