From f2d3388cbd6025acf2924bb3ab465ecaf8da91ec Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 7 Oct 2021 19:04:33 +1100 Subject: [PATCH] Minor fixes --- app/Services/Invoice/InvoiceService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/Invoice/InvoiceService.php b/app/Services/Invoice/InvoiceService.php index 22063cc4b809..d91799a9a5eb 100644 --- a/app/Services/Invoice/InvoiceService.php +++ b/app/Services/Invoice/InvoiceService.php @@ -473,8 +473,10 @@ class InvoiceService if ($this->invoice->status_id == Invoice::STATUS_PAID && $this->invoice->client->getSetting('auto_archive_invoice')) { /* Throws: Payment amount xxx does not match invoice totals. */ + $base_repository = new BaseRepository(); $base_repository->archive($this->invoice); + } return $this;