Fix for check data
This commit is contained in:
parent
43550cd9d1
commit
6d851ca815
1 changed files with 5 additions and 1 deletions
|
|
@ -125,10 +125,14 @@ class CheckData extends Command
|
|||
|
||||
if ($this->option('fix') == 'true') {
|
||||
foreach ($invoices as $invoice) {
|
||||
$dispatcher = $invoice->getEventDispatcher();
|
||||
if ($invoice->is_deleted) {
|
||||
$invoice->unsetEventDispatcher();
|
||||
}
|
||||
$invoice->markSent();
|
||||
$invoice->is_public = true;
|
||||
$invoice->save();
|
||||
$invoice->markInvitationsSent();
|
||||
$invoice->setEventDispatcher($dispatcher);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue