mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
Make sure invoice is sent when marking as paid
This commit is contained in:
parent
e08a001126
commit
493f281bb3
@ -770,6 +770,10 @@ class InvoiceRepository extends BaseRepository
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! $invoice->isSent()) {
|
||||||
|
$this->markSent($invoice);
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'client_id' => $invoice->client_id,
|
'client_id' => $invoice->client_id,
|
||||||
'invoice_id' => $invoice->id,
|
'invoice_id' => $invoice->id,
|
||||||
|
Loading…
Reference in New Issue
Block a user