diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index 2c897968320..e308c61b41e 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -1311,7 +1311,7 @@ class Paiement extends CommonObject $invoice = new Facture($this->db); if ($invoice->fetch($billsarray[0]) > 0) { - $force_thirdparty_id = $invoice->fk_soc; + $force_thirdparty_id = $invoice->socid; } } }