Make sure invoice is sent when marking as paid
This commit is contained in:
parent
0c5225df51
commit
5e979ce5c8
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue