diff --git a/ChangeLog b/ChangeLog index 5deebade85b..f234a24e3ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -43,9 +43,11 @@ For users: - New: Can define custom fields for categories. - New: Prepare generation of SEPA files into module withdrawal. - New: Can filter on status for supplier order. +- New: Add option FACTURE_SENDBYEMAIL_FOR_ALL_STATUS to allow to send invoice by email + whatever is its status. +- New: Add filter date in bank writing list page. - Fix: Project Task numbering customs rule works. - Fix: Add actions events not implemented. -- New: Add filter date in bank writing list page. - Fix: Price min of composition is not supplier price min by quantity TODO diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index d56f41763da..448c509e52f 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3332,9 +3332,11 @@ if ($action == 'create') dol_fiche_end(); - // Boutons actions - if ($action != 'prerelance' && $action != 'presend' && $action != 'valid' && $action != 'editline') { + // Actions buttons + + if ($action != 'prerelance' && $action != 'presend' && $action != 'valid' && $action != 'editline') + { print '
'; $parameters = array(); @@ -3382,7 +3384,7 @@ if ($action == 'create') } // Send by mail - if (($object->statut == 1 || $object->statut == 2)) { + if (($object->statut == 1 || $object->statut == 2) || ! empty($conf->global->FACTURE_SENDBYEMAIL_FOR_ALL_STATUS)) { if ($objectidnext) { print '
' . $langs->trans('SendByMail') . '
'; } else {