diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 1d3640b3c6c..32a896ae79b 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -132,11 +132,11 @@ $sql .= " AND fk_type like '" . $type . "'"; $si=0; -$debit = ereg_replace(',','.',$debit); -$credit = ereg_replace(',','.',$credit); +$debit = price2num(str_replace('-','',$debit)); +$credit = price2num(str_replace('-','',$credit)); if (is_numeric($debit)) { $si++; - $sqlw[$si] .= " b.amount = " . -$debit; + $sqlw[$si] .= " b.amount = -" . $debit; } if (is_numeric($credit)) { $si++;