New: Add option INVOICE_CAN_NEVER_BE_REMOVED

This commit is contained in:
Laurent Destailleur 2013-04-01 22:17:51 +02:00
parent 80e34c8e1c
commit 954af0f6c7
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

@ -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);