From 5ffba68beeceee0e02fe14f525b091e3c49379d5 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Sat, 10 Oct 2020 06:50:28 +0200 Subject: [PATCH] Fix --- htdocs/intracommreport/class/intracommreport.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/intracommreport/class/intracommreport.class.php b/htdocs/intracommreport/class/intracommreport.class.php index cbbae7112ec..b07d26150d6 100644 --- a/htdocs/intracommreport/class/intracommreport.class.php +++ b/htdocs/intracommreport/class/intracommreport.class.php @@ -197,7 +197,7 @@ class IntracommReport extends CommonObject while ($res = $this->db->fetch_object($resql)) { if ($exporttype == 'des') { - $this->addItemXMlDes($declaration, $res, '', $i); + $this->addItemXMlDes($declaration, $res, $i); } else { if (empty($res->fk_pays)) { // We don't stop the loop because we want to know all the third parties who don't have an informed country @@ -205,7 +205,7 @@ class IntracommReport extends CommonObject } else { if ($conf->global->INTRACOMMREPORT_CATEG_FRAISDEPORT > 0 && $categ_fraisdeport->containsObject('product', $res->id_prod)) { $TLinesFraisDePort[] = $res; - } else $this->addItemXMl($declaration, $res, '', $i); + } else $this->addItemXMl($declaration, $res, $i, ''); } } @@ -366,7 +366,7 @@ class IntracommReport extends CommonObject $resql = $this->db->query($sql); $ress = $this->db->fetch_object($resql); - $this->addItemXMl($declaration, $res, $ress->customcode, $i); + $this->addItemXMl($declaration, $res, $i, $ress->customcode); $i++; }