Fix if option WORKFLOW_DISABLE_CREATE_INVOICE_FROM_ORDER is on, we must
not show unpaid orders.
This commit is contained in:
parent
9a0af064bf
commit
4cf59d3f9b
@ -628,7 +628,7 @@ if (! empty($conf->tax->enabled) && $user->rights->tax->charges->lire)
|
|||||||
/*
|
/*
|
||||||
* Customers orders to be billed
|
* 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);
|
$commandestatic=new Commande($db);
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user