Fix if option WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER is on, we must

not show unpaid orders.
This commit is contained in:
Laurent Destailleur 2016-02-26 19:13:25 +01:00
parent 9a0af064bf
commit 4cf59d3f9b

View File

@ -628,7 +628,7 @@ if (! empty($conf->tax->enabled) && $user->rights->tax->charges->lire)
/*
* Customers orders to be billed
*/
if (! empty($conf->facture->enabled) && ! empty($conf->commande->enabled) && $user->rights->commande->lire)
if (! empty($conf->facture->enabled) && ! empty($conf->commande->enabled) && $user->rights->commande->lire && empty($conf->global->WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER))
{
$commandestatic=new Commande($db);
$langs->load("orders");