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 ''; print ''; print ' '; - print ''; + print ''; print ''; - print ' '; - print ' '; + print ''; + print ''; + print ''; + print ''; + print ''; print ''; print ''; print "\n";