Merge pull request #6792 from turbo124/v5-develop

Minor fixes
This commit is contained in:
David Bomba 2021-10-07 19:04:47 +11:00 committed by GitHub
commit 1c5b3a0282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;