From 38b7aa69cb5be7ce7c8d0e70d0bd3b479caf56d4 Mon Sep 17 00:00:00 2001 From: simnandez <jmenent@2byte.es> Date: Thu, 20 Sep 2012 15:57:53 +0200 Subject: [PATCH] =?UTF-8?q?[=20task=20#104=20]=20Possibilit=C3=A9=20de=20f?= =?UTF-8?q?acturer=20plusieurs=20commandes.=20Working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/orderstoinvoice.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index 5b1833ae50e..ea165fe739c 100755 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -504,7 +504,6 @@ if (($action != 'create' && $action != 'add') || ! empty($mesgs)) if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; $sql.= ' WHERE c.fk_soc = s.rowid'; - // Which invoice to show /* if ($viewstatut <> '') { @@ -527,6 +526,8 @@ if (($action != 'create' && $action != 'add') || ! empty($mesgs)) } } */ + + // Which invoice to show $sql.= " AND c.fk_statut in (1, 2) AND c.facture = 0"; $sql.= ' AND s.entity = '.$conf->entity; -- GitLab