From f83dedf1b0b47b69a2aaf2aef6e688c9186c75e9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 29 May 2018 10:04:20 +0200 Subject: [PATCH] Fix space/tab --- htdocs/comm/propal/class/api_proposals.class.php | 4 ++-- htdocs/commande/class/api_orders.class.php | 10 +++++----- htdocs/compta/facture/class/api_invoices.class.php | 9 +++++---- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/htdocs/comm/propal/class/api_proposals.class.php b/htdocs/comm/propal/class/api_proposals.class.php index d58af90d8da..39857d88365 100644 --- a/htdocs/comm/propal/class/api_proposals.class.php +++ b/htdocs/comm/propal/class/api_proposals.class.php @@ -78,7 +78,7 @@ class Proposals extends DolibarrApi } // Add external contacts ids - $this->propal->contacts_ids = $this->propal->liste_contact(-1,'external',1); + $this->propal->contacts_ids = $this->propal->liste_contact(-1,'external',1); $this->propal->fetchObjectLinked(); return $this->_cleanObjectDatas($this->propal); @@ -160,7 +160,7 @@ class Proposals extends DolibarrApi $proposal_static = new Propal($db); if($proposal_static->fetch($obj->rowid)) { // Add external contacts ids - $proposal_static->contacts_ids = $proposal_static->liste_contact(-1,'external',1); + $proposal_static->contacts_ids = $proposal_static->liste_contact(-1,'external',1); $obj_ret[] = $this->_cleanObjectDatas($proposal_static); } $i++; diff --git a/htdocs/commande/class/api_orders.class.php b/htdocs/commande/class/api_orders.class.php index 5f10168d33b..e52da47e11b 100644 --- a/htdocs/commande/class/api_orders.class.php +++ b/htdocs/commande/class/api_orders.class.php @@ -76,11 +76,11 @@ class Orders extends DolibarrApi throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login); } - // Add external contacts ids - $this->commande->contacts_ids = $this->commande->liste_contact(-1,'external',1); - $this->commande->fetchObjectLinked(); + // Add external contacts ids + $this->commande->contacts_ids = $this->commande->liste_contact(-1,'external',1); + $this->commande->fetchObjectLinked(); return $this->_cleanObjectDatas($this->commande); - } + } @@ -161,7 +161,7 @@ class Orders extends DolibarrApi $obj = $db->fetch_object($result); $commande_static = new Commande($db); if($commande_static->fetch($obj->rowid)) { - // Add external contacts ids + // Add external contacts ids $commande_static->contacts_ids = $commande_static->liste_contact(-1,'external',1); $obj_ret[] = $this->_cleanObjectDatas($commande_static); } diff --git a/htdocs/compta/facture/class/api_invoices.class.php b/htdocs/compta/facture/class/api_invoices.class.php index 10cfd6bff36..1b985021cc8 100644 --- a/htdocs/compta/facture/class/api_invoices.class.php +++ b/htdocs/compta/facture/class/api_invoices.class.php @@ -81,8 +81,9 @@ class Invoices extends DolibarrApi throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login); } - // Add external contacts ids - $this->invoice->contacts_ids = $this->invoice->liste_contact(-1,'external',1); + // Add external contacts ids + $this->invoice->contacts_ids = $this->invoice->liste_contact(-1,'external',1); + $this->invoice->fetchObjectLinked(); return $this->_cleanObjectDatas($this->invoice); } @@ -178,8 +179,8 @@ class Invoices extends DolibarrApi $invoice_static->totaldeposits = $invoice_static->getSumDepositsUsed(); $invoice_static->remaintopay = price2num($invoice_static->total_ttc - $invoice_static->totalpaid - $invoice_static->totalcreditnotes - $invoice_static->totaldeposits, 'MT'); - // Add external contacts ids - $invoice_static->contacts_ids = $invoice_static->liste_contact(-1,'external',1); + // Add external contacts ids + $invoice_static->contacts_ids = $invoice_static->liste_contact(-1,'external',1); $obj_ret[] = $this->_cleanObjectDatas($invoice_static); }