Prevent emailing recurring invoice through API
This commit is contained in:
parent
fbf5e726fb
commit
905593b525
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ class InvoiceApiController extends BaseAPIController
|
|||
if (isset($data['email_invoice']) && $data['email_invoice']) {
|
||||
if ($payment) {
|
||||
$this->mailer->sendPaymentConfirmation($payment);
|
||||
} else {
|
||||
} elseif ( ! $invoice->is_recurring) {
|
||||
$this->mailer->sendInvoice($invoice);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue