From 9ee88e9d35acd4b3ef1acce779041147259f682c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 19 Sep 2018 18:33:11 +0200 Subject: [PATCH 1/2] remove superfluous spaces --- htdocs/societe/class/api_thirdparties.class.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index e2d13506c99..10a78aa51d2 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1174,12 +1174,12 @@ class Thirdparties extends DolibarrApi /** * Generate a Document from a bank account record (like SEPA mandate) - * + * * @param int $id thirdparty id * @param int $companybankid companybankid * @param string $model model of document to generate * @return void - * + * * @url GET {id}/generateBankAccountDocument/{companybankid}/{model} */ public function generateBankAccountDocument($id, $companybankid = null, $model = 'sepamandate') @@ -1216,8 +1216,7 @@ class Thirdparties extends DolibarrApi if ($this->conf->global->MAIN_MULTILANGS && empty($newlang) && GETPOST('lang_id','aZ09')) $newlang=GETPOST('lang_id','aZ09'); if ($this->conf->global->MAIN_MULTILANGS && empty($newlang) && isset($this->company->thirdparty->default_lang)) $newlang=$this->company->thirdparty->default_lang; // for proposal, order, invoice, ... if ($this->conf->global->MAIN_MULTILANGS && empty($newlang) && isset($this->company->default_lang)) $newlang=$this->company->default_lang; // for thirdparty - if (! empty($newlang)) - { + if (! empty($newlang)) { $outputlangs = new Translate("",$conf); $outputlangs->setDefaultLang($newlang); } @@ -1239,7 +1238,7 @@ class Thirdparties extends DolibarrApi if($result->num_rows == 0 ){ throw new RestException(404, 'Account not found'); } - + $i=0; $accounts =[]; From 237f888356455094298fa10eb950f0ca4df863f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 19 Sep 2018 18:47:59 +0200 Subject: [PATCH 2/2] Update api_thirdparties.class.php --- htdocs/societe/class/api_thirdparties.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 10a78aa51d2..008a7388c8c 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1237,7 +1237,7 @@ class Thirdparties extends DolibarrApi if($result->num_rows == 0 ){ throw new RestException(404, 'Account not found'); - } + } $i=0;