Make sure invoice is sent when marking as paid

This commit is contained in:
Hillel Coren 2016-12-29 13:10:57 +02:00
parent 0c5225df51
commit 5e979ce5c8

View File

@ -770,6 +770,10 @@ class InvoiceRepository extends BaseRepository
return;
}
if ( ! $invoice->isSent()) {
$this->markSent($invoice);
}
$data = [
'client_id' => $invoice->client_id,
'invoice_id' => $invoice->id,