diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index a69b35c955967b3988c8c97a90b87b8c81255e2f..4e05be21c0115b6c2db6b4649b4a130066e0e9d9 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1855,7 +1855,7 @@ if ($action == 'create') else { print '<td colspan="2">'; - print $form->select_company('', 'socid', 's.client = 1 OR s.client = 3', 1); + print $form->select_company('', 'socid', '(s.client = 1 OR s.client = 3) AND status=1', 1); print '</td>'; } print '</tr>' . "\n";