This commit is contained in:
James Cole
2018-04-08 17:36:37 +02:00
parent 8f0e36a8e4
commit 3fbd2f93c8
6 changed files with 66 additions and 7 deletions

View File

@@ -140,6 +140,18 @@ interface BillRepositoryInterface
*/
public function getPossiblyRelatedJournals(Bill $bill): Collection;
/**
* Return all rules related to the bills in the collection, in an associative array:
* 5= billid
*
* 5 => [['id' => 1, 'title' => 'Some rule'],['id' => 2, 'title' => 'Some other rule']]
*
* @param Collection $collection
*
* @return array
*/
public function getRulesForBills(Collection $collection): array;
/**
* @param Bill $bill
* @param Carbon $date