1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00

Make sure invoice is sent when marking as paid

This commit is contained in:
Hillel Coren 2016-12-29 13:11:14 +02:00
parent e08a001126
commit 493f281bb3

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,