This commit is contained in:
Laurent Destailleur 2023-01-18 23:58:26 +01:00
parent a5a7f81927
commit a33603b6ae
6 changed files with 27 additions and 31 deletions

View File

@ -64,11 +64,10 @@ class Interventions extends DolibarrApi
/** /**
* Get properties of a Expense Report object * Get properties of a Expense Report object
*
* Return an array with Expense Report information * Return an array with Expense Report information
* *
* @param int $id ID of Expense Report * @param int $id ID of Expense Report
* @return array|mixed Data without useless information * @return Object Object with cleaned properties
* *
* @throws RestException * @throws RestException
*/ */
@ -93,7 +92,6 @@ class Interventions extends DolibarrApi
/** /**
* List of interventions * List of interventions
*
* Return a list of interventions * Return a list of interventions
* *
* @param string $sortfield Sort field * @param string $sortfield Sort field
@ -338,10 +336,9 @@ class Interventions extends DolibarrApi
* *
* @param int $id Intervention ID * @param int $id Intervention ID
* @param int $notrigger 1=Does not execute triggers, 0= execute triggers * @param int $notrigger 1=Does not execute triggers, 0= execute triggers
* @return Object Object with cleaned properties
* *
* @url POST {id}/validate * @url POST {id}/validate
*
* @return array
*/ */
public function validate($id, $notrigger = 0) public function validate($id, $notrigger = 0)
{ {
@ -374,10 +371,9 @@ class Interventions extends DolibarrApi
* Close an intervention * Close an intervention
* *
* @param int $id Intervention ID * @param int $id Intervention ID
* @return Object Object with cleaned properties
* *
* @url POST {id}/close * @url POST {id}/close
*
* @return array
*/ */
public function closeFichinter($id) public function closeFichinter($id)
{ {

View File

@ -59,7 +59,7 @@ class Receptions extends DolibarrApi
* Return an array with reception informations * Return an array with reception informations
* *
* @param int $id ID of reception * @param int $id ID of reception
* @return array|mixed data without useless information * @return Object Object with cleaned properties
* *
* @throws RestException * @throws RestException
*/ */
@ -499,10 +499,10 @@ class Receptions extends DolibarrApi
* *
* @param int $id Reception ID * @param int $id Reception ID
* @param int $notrigger 1=Does not execute triggers, 0= execute triggers * @param int $notrigger 1=Does not execute triggers, 0= execute triggers
* @return Object Object with cleaned properties
* *
* @url POST {id}/validate * @url POST {id}/validate
* *
* @return array
* \todo An error 403 is returned if the request has an empty body. * \todo An error 403 is returned if the request has an empty body.
* Error message: "Forbidden: Content type `text/plain` is not supported." * Error message: "Forbidden: Content type `text/plain` is not supported."
* Workaround: send this in the body * Workaround: send this in the body
@ -627,10 +627,9 @@ class Receptions extends DolibarrApi
* *
* @param int $id Reception ID * @param int $id Reception ID
* @param int $notrigger Disabled triggers * @param int $notrigger Disabled triggers
* @return Object Object with cleaned properties
* *
* @url POST {id}/close * @url POST {id}/close
*
* @return int
*/ */
public function close($id, $notrigger = 0) public function close($id, $notrigger = 0)
{ {

View File

@ -67,7 +67,7 @@ class Recruitment extends DolibarrApi
* Return an array with jobposition informations * Return an array with jobposition informations
* *
* @param int $id ID of jobposition * @param int $id ID of jobposition
* @return array|mixed data without useless information * @return Object Object with cleaned properties
* *
* @url GET jobposition/{id} * @url GET jobposition/{id}
* *
@ -98,7 +98,7 @@ class Recruitment extends DolibarrApi
* Return an array with candidature informations * Return an array with candidature informations
* *
* @param int $id ID of candidature * @param int $id ID of candidature
* @return array|mixed data without useless information * @return Object Object with cleaned properties
* *
* @url GET candidature/{id} * @url GET candidature/{id}
* *

View File

@ -524,7 +524,7 @@ class Thirdparties extends DolibarrApi
* Delete thirdparty * Delete thirdparty
* *
* @param int $id Thirdparty ID * @param int $id Thirdparty ID
* @return integer * @return array
*/ */
public function delete($id) public function delete($id)
{ {
@ -1354,7 +1354,7 @@ class Thirdparties extends DolibarrApi
* @param int $id Thirdparty id * @param int $id Thirdparty id
* @param int $companybankid Companybank id * @param int $companybankid Companybank id
* @param string $model Model of document to generate * @param string $model Model of document to generate
* @return void * @return array
* *
* @url GET {id}/generateBankAccountDocument/{companybankid}/{model} * @url GET {id}/generateBankAccountDocument/{companybankid}/{model}
*/ */
@ -1375,6 +1375,7 @@ class Thirdparties extends DolibarrApi
$this->company->setDocModel(DolibarrApiAccess::$user, $model); $this->company->setDocModel(DolibarrApiAccess::$user, $model);
$this->company->fk_bank = $this->company->fk_account; $this->company->fk_bank = $this->company->fk_account;
$this->company->fk_account = $this->company->fk_account;
$outputlangs = $langs; $outputlangs = $langs;
$newlang = ''; $newlang = '';

View File

@ -58,7 +58,7 @@ class Supplierproposals extends DolibarrApi
* Return an array with supplier proposal informations * Return an array with supplier proposal informations
* *
* @param int $id ID of supplier proposal * @param int $id ID of supplier proposal
* @return array|mixed data without useless information * @return Object Object with cleaned properties
* *
* @throws RestException * @throws RestException
*/ */

View File

@ -67,7 +67,7 @@ class Zapier extends DolibarrApi
* Return an array with hook informations * Return an array with hook informations
* *
* @param int $id ID of hook * @param int $id ID of hook
* @return array|mixed data without useless information * @return Object Object with cleaned properties
* *
* @url GET /hooks/{id} * @url GET /hooks/{id}
* @throws RestException * @throws RestException