[ task #104 ] Possibilité de facturer plusieurs commandes. Working
This commit is contained in:
parent
77ecd5c6fc
commit
38b7aa69cb
@ -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";
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
$sql.= ' WHERE c.fk_soc = s.rowid';
|
$sql.= ' WHERE c.fk_soc = s.rowid';
|
||||||
|
|
||||||
// Which invoice to show
|
|
||||||
/*
|
/*
|
||||||
if ($viewstatut <> '')
|
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 c.fk_statut in (1, 2) AND c.facture = 0";
|
||||||
|
|
||||||
$sql.= ' AND s.entity = '.$conf->entity;
|
$sql.= ' AND s.entity = '.$conf->entity;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user