Skip to content
Snippets Groups Projects
Commit 01655d17 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Add option FACTURE_SENDBYEMAIL_FOR_ALL_STATUS to allow to send

invoice
by email whatever is its status.
parent 002e64d5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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 '<div class="tabsAction">';
$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 '<div class="inline-block divButAction"><span class="butActionRefused" title="' . $langs->trans("DisabledBecauseReplacedInvoice") . '">' . $langs->trans('SendByMail') . '</span></div>';
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment