Allow sending emails even when the invoice is a draft
This commit is contained in:
parent
4c49334c31
commit
faa9dcaa6c
2 changed files with 6 additions and 3 deletions
|
@ -90,9 +90,9 @@ class Actionssendrecurringinvoicebymail
|
|||
return -1;
|
||||
}
|
||||
|
||||
// We only send the mail when the invoice is not a draft
|
||||
// and the sending is enabled for the template.
|
||||
if ($object->brouillon || !$mailObject->active) {
|
||||
// Abort sending when inactive
|
||||
// (draft invoice or explictly disabled)
|
||||
if (!$mailObject->active) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue