diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index fc37c3f309c..76b1dab5d83 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -1312,7 +1312,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; } } }