Minor fixes

This commit is contained in:
David Bomba 2021-10-07 19:04:33 +11:00
parent 3eb03e7ad4
commit f2d3388cbd

View File

@ -473,8 +473,10 @@ class InvoiceService
if ($this->invoice->status_id == Invoice::STATUS_PAID && $this->invoice->client->getSetting('auto_archive_invoice')) { if ($this->invoice->status_id == Invoice::STATUS_PAID && $this->invoice->client->getSetting('auto_archive_invoice')) {
/* Throws: Payment amount xxx does not match invoice totals. */ /* Throws: Payment amount xxx does not match invoice totals. */
$base_repository = new BaseRepository(); $base_repository = new BaseRepository();
$base_repository->archive($this->invoice); $base_repository->archive($this->invoice);
} }
return $this; return $this;