From 2036f17df5140a5e11560bf1f2de8618aa8ec7cb Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 19 Jan 2016 21:45:44 +0100 Subject: [PATCH] if FAC_FORCE_DATE_VALIDATION can't change the billing date --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index c933482f98e..5893a065475 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2992,7 +2992,7 @@ else if ($id > 0 || ! empty($ref)) print ''; - if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editinvoicedate' && ! empty($object->brouillon) && $user->rights->facture->creer) + if ($object->type != Facture::TYPE_CREDIT_NOTE && $action != 'editinvoicedate' && ! empty($object->brouillon) && $user->rights->facture->creer && empty($conf->global->FAC_FORCE_DATE_VALIDATION)) print ''; print '
'; print $langs->trans('Date'); print 'id . '">' . img_edit($langs->trans('SetDate'), 1) . '
'; print '';