From d079247b2b0131fe1d139fbf29334ad56c67aece Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Sat, 1 Oct 2016 13:32:24 +0200
Subject: [PATCH] FIX #5813 Bug: Incoterms not being read correctly

---
 htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
index 37e3c0f08d4..cc0d6478bb6 100644
--- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
+++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php
@@ -338,11 +338,6 @@ class pdf_crabe extends ModelePDFFactures
 				$height_incoterms = 0;
 				if ($conf->incoterm->enabled)
 				{
-					if (is_object($object->thirdparty))
-					{
-						$object->fk_incoterms=$object->thirdparty->fk_incoterms;
-						$object->location_incoterms=$object->thirdparty->location_incoterms;
-					}
 					$desc_incoterms = $object->getIncotermsForPDF();
 					if ($desc_incoterms)
 					{
-- 
GitLab