mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
New method for transaction matcher.
This commit is contained in:
parent
49211482b0
commit
1cf0125d1b
@ -76,6 +76,27 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $types
|
||||||
|
* @param int $offset
|
||||||
|
* @param int $count
|
||||||
|
*
|
||||||
|
* @return Collection
|
||||||
|
*/
|
||||||
|
public function getCollectionOfTypes(array $types, int $offset, int $count)
|
||||||
|
{
|
||||||
|
$set = Auth::user()->transactionJournals()->transactionTypes($types)
|
||||||
|
->take($count)->offset($offset)
|
||||||
|
->orderBy('date', 'DESC')
|
||||||
|
->orderBy('order', 'ASC')
|
||||||
|
->orderBy('id', 'DESC')
|
||||||
|
->get(
|
||||||
|
['transaction_journals.*']
|
||||||
|
);
|
||||||
|
|
||||||
|
return $set;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param TransactionType $dbType
|
* @param TransactionType $dbType
|
||||||
*
|
*
|
||||||
|
@ -55,6 +55,15 @@ interface JournalRepositoryInterface
|
|||||||
*/
|
*/
|
||||||
public function getJournalsOfTypes(array $types, int $offset, int $page);
|
public function getJournalsOfTypes(array $types, int $offset, int $page);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array $types
|
||||||
|
* @param int $offset
|
||||||
|
* @param int $count
|
||||||
|
*
|
||||||
|
* @return Collection
|
||||||
|
*/
|
||||||
|
public function getCollectionOfTypes(array $types, int $offset, int $count);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $type
|
* @param string $type
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user