diff --git a/ChangeLog b/ChangeLog index ab1fe32aa8f..4618529b009 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,7 @@ For users: - New: Script email_unpaid_invoices_to_representative accepts now a parameter test and a delay. - New: Can define a different clicktodial setup per user. +- New: Add option INVOICE_CAN_NEVER_BE_REMOVED. - First change to prepare feature click to print for PDF. For translators: diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 5c78415d686..a24b21c51a8 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -2601,7 +2601,7 @@ class Facture extends CommonInvoice global $conf; if (! empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED)) return 1; - if (! empty($conf->global->INVOICE_CAN_NEVER_BE_REMOVED)) return 1; + if (! empty($conf->global->INVOICE_CAN_NEVER_BE_REMOVED)) return 0; // on verifie si la facture est en numerotation provisoire $facref = substr($this->ref, 1, 4);