diff --git a/app/Services/Invoice/MarkInvoiceDeleted.php b/app/Services/Invoice/MarkInvoiceDeleted.php index e685efe8f15d..145af4ea543b 100644 --- a/app/Services/Invoice/MarkInvoiceDeleted.php +++ b/app/Services/Invoice/MarkInvoiceDeleted.php @@ -156,8 +156,8 @@ class MarkInvoiceDeleted extends AbstractService $this->invoice->number = $number; //wipe references to invoices from related entities. - $this->invoice->tasks()->updateQuietly(['invoice_id' => null]); - $this->invoice->expenses()->updateQuietly(['invoice_id' => null]); + $this->invoice->tasks()->update(['invoice_id' => null]); + $this->invoice->expenses()->update(['invoice_id' => null]); return $this; }