From b5c75ecbd52988e6a507766663c87c6c4c17a201 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 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; } } }