From a41be55251e6cb74dbfde055454f30c97c17f3f1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 16 Feb 2021 20:10:03 +0100 Subject: [PATCH] FIx #16306 --- htdocs/compta/paiement/class/paiement.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } }