Fix: Remove draft from list of invoice to process

This commit is contained in:
Laurent Destailleur 2009-06-14 20:59:27 +00:00
parent 2f35ae229a
commit cf474fb2cc

View File

@ -20,10 +20,10 @@
*/ */
/** /**
\file htdocs/commande/liste.php * \file htdocs/commande/liste.php
\ingroup commande * \ingroup commande
\brief Page liste des commandes * \brief Page to list orders
\version $Id$ * \version $Id$
*/ */
@ -93,16 +93,16 @@ if ($viewstatut <> '')
$sql.= ' AND c.fk_statut ='.$viewstatut; // brouillon, validee, en cours, annulee $sql.= ' AND c.fk_statut ='.$viewstatut; // brouillon, validee, en cours, annulee
if ($viewstatut == 3) if ($viewstatut == 3)
{ {
$sql.= ' AND c.facture = 0'; // a facturer $sql.= ' AND c.facture = 0'; // need to create invoice
} }
} }
if ($viewstatut == 4) if ($viewstatut == 4)
{ {
$sql.= ' AND c.facture = 1'; // factur<EFBFBD>e $sql.= ' AND c.facture = 1'; // invoice created
} }
if ($viewstatut == -2) if ($viewstatut == -2) // To process
{ {
$sql .= ' AND c.fk_statut >= 0 and c.fk_statut <= 3 and c.facture = 0'; $sql .= ' AND c.fk_statut > 0 and c.fk_statut <= 3 and c.facture = 0';
} }
} }
if ($_GET['month'] > 0) if ($_GET['month'] > 0)