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

@@ -119,9 +119,11 @@ class UpgradeDatabase extends Command
}
// loop bills.
$order = 1;
$order = 1;
/** @var Collection $collection */
$collection = $user->bills()->where('active', 1)->get();
/** @var Bill $bill */
foreach ($user->bills()->get() as $bill) {
foreach ($collection as $bill) {
if ($bill->match !== 'MIGRATED_TO_RULES') {
$rule = Rule::create(
[