diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index ee03cc27b5e..eef1e317ac5 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -58,10 +58,7 @@ class Paiement if ($result) { - $label = "Facture $this->facnumber - $this->societe"; - $sql = "INSERT INTO llx_bank (datec, dateo, amount, author, label)"; - $sql .= " VALUES (now(), $this->datepaye, $this->amount,'$this->author', '$this->label')"; - $result = $this->db->query($sql); + } else {