mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
24 lines
527 B
PHP
24 lines
527 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: User
|
||
|
* Date: 30-7-14
|
||
|
* Time: 10:57
|
||
|
*/
|
||
|
|
||
|
namespace Firefly\Helper\Controllers;
|
||
|
|
||
|
|
||
|
use Carbon\Carbon;
|
||
|
|
||
|
class Category implements CategoryInterface
|
||
|
{
|
||
|
public function journalsInRange(\Category $category, Carbon $start, Carbon $end)
|
||
|
{
|
||
|
return $category->transactionjournals()->
|
||
|
with(['transactions','transactions.account','transactiontype','components'])->
|
||
|
|
||
|
orderBy('date','DESC')->orderBy('id','DESC')->before($end)->after($start)->get();
|
||
|
|
||
|
}
|
||
|
}
|