From 142f1ecddc0e64b662780eb98e089b95ad5c94f3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville <rodolphe@quiedeville.org> Date: Wed, 22 Dec 2004 08:38:58 +0000 Subject: [PATCH] Recherche de facture sur montant --- htdocs/compta/facture.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 2421a82eeaa..015eb3e54c0 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1536,6 +1536,16 @@ else $sql .= " AND s.nom like '%".$_GET["search_societe"]."%'"; } + if ($_GET["search_montant_ht"]) + { + $sql .= " AND f.total = '".$_GET["search_montant_ht"]."'"; + } + + if ($_GET["search_montant_ttc"]) + { + $sql .= " AND f.total_ttc = '".$_GET["search_montant_ttc"]."'"; + } + if ($year > 0) $sql .= " AND date_format(f.datef, '%Y') = $year"; @@ -1588,10 +1598,13 @@ else print '<td valign="right">'; print '<input class="fat" size="10" type="text" name="search_ref" value="'.$_GET["search_ref"].'">'; print '</td><td> </td>'; - print '<td valign="right">'; + print '<td align="left">'; print '<input class="fat" type="text" name="search_societe" value="'.$_GET["search_societe"].'">'; - print '</td><td> '; - print '</td><td> </td><td colspan="2" align="center">'; + print '</td><td align="right">'; + print '<input class="fat" type="text" size="10" name="search_montant_ht" value="'.$_GET["search_montant_ht"].'">'; + print '</td><td align="right">'; + print '<input class="fat" type="text" size="10" name="search_montant_ttc" value="'.$_GET["search_montant_ttc"].'">'; + print '</td><td colspan="2" align="center">'; print '<input type="submit" class="button" name="button_search" value="'.$langs->trans("Search").'">'; print '</td>'; print "</tr>\n"; -- GitLab