mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Minor refactor
This commit is contained in:
parent
37aac0db03
commit
5ce87d00d9
@ -285,10 +285,8 @@ class BaseRepository
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$model->load('invitations');
|
|
||||||
|
|
||||||
/* If no invitations have been created, this is our fail safe to maintain state*/
|
/* If no invitations have been created, this is our fail safe to maintain state*/
|
||||||
if ($model->invitations->count() == 0)
|
if ($model->invitations()->count() == 0)
|
||||||
$model->service()->createInvitations();
|
$model->service()->createInvitations();
|
||||||
|
|
||||||
/* Recalculate invoice amounts */
|
/* Recalculate invoice amounts */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user