mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 18:54:58 +00:00 
			
		
		
		
	This commit is contained in:
		| @@ -172,7 +172,6 @@ class ShowController extends Controller | |||||||
| 
 | 
 | ||||||
|         /** @var BudgetLimitTransformer $transformer */ |         /** @var BudgetLimitTransformer $transformer */ | ||||||
|         $transformer = app(BudgetLimitTransformer::class); |         $transformer = app(BudgetLimitTransformer::class); | ||||||
|         $transformer->setParameters($this->parameters); |  | ||||||
| 
 | 
 | ||||||
|         $resource    = new Item($budgetLimit, $transformer, 'budget_limits'); |         $resource    = new Item($budgetLimit, $transformer, 'budget_limits'); | ||||||
| 
 | 
 | ||||||
|   | |||||||
| @@ -154,6 +154,9 @@ class BudgetLimitEnrichment implements EnrichmentInterface | |||||||
|         $this->start       = $this->collection->min('start_date') ?? Carbon::now()->startOfMonth(); |         $this->start       = $this->collection->min('start_date') ?? Carbon::now()->startOfMonth(); | ||||||
|         $this->end         = $this->collection->max('end_date') ?? Carbon::now()->endOfMonth(); |         $this->end         = $this->collection->max('end_date') ?? Carbon::now()->endOfMonth(); | ||||||
| 
 | 
 | ||||||
|  |         // #11096 make sure that the max end date is also at the end of the day,
 | ||||||
|  |         $this->end->endOfDay(); | ||||||
|  | 
 | ||||||
|         /** @var BudgetLimit $limit */ |         /** @var BudgetLimit $limit */ | ||||||
|         foreach ($this->collection as $limit) { |         foreach ($this->collection as $limit) { | ||||||
|             $id          = (int)$limit->id; |             $id          = (int)$limit->id; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user