Refactor upgrade and verify commands.

This commit is contained in:
James Cole
2019-03-23 08:10:59 +01:00
parent a89be86ca4
commit 1b0be2a47e
32 changed files with 1883 additions and 873 deletions

View File

@@ -482,6 +482,16 @@ class JournalRepository implements JournalRepositoryInterface
return $amount;
}
/**
* Return all journals without a group, used in an upgrade routine.
*
* @return Collection
*/
public function getJournalsWithoutGroup(): Collection
{
return TransactionJournal::whereNull('transaction_group_id')->get();
}
/**
* @param TransactionJournalLink $link
*