Skip to content
Snippets Groups Projects
Commit 38b7aa69 authored by Juanjo Menent's avatar Juanjo Menent
Browse files

[ task #104 ] Possibilité de facturer plusieurs commandes. Working

parent 77ecd5c6
Branches
Tags
No related merge requests found
...@@ -504,7 +504,6 @@ if (($action != 'create' && $action != 'add') || ! empty($mesgs)) ...@@ -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)) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment