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
@ -336,12 +334,11 @@ class Interventions extends DolibarrApi
* "notrigger": 0 * "notrigger": 0
* } * }
* *
* @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)
{ {
@ -373,11 +370,10 @@ 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
*/ */
@ -497,12 +497,12 @@ class Receptions extends DolibarrApi
* This may record stock movements if module stock is enabled and option to * This may record stock movements if module stock is enabled and option to
* decrease stock on reception is on. * decrease stock on reception is on.
* *
* @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
@ -625,12 +625,11 @@ class Receptions extends DolibarrApi
/** /**
* Close a reception (Classify it as "Delivered") * Close a reception (Classify it as "Delivered")
* *
* @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

@ -66,8 +66,8 @@ 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}
* *
@ -97,8 +97,8 @@ 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

@ -523,8 +523,8 @@ 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)
{ {
@ -1351,10 +1351,10 @@ class Thirdparties extends DolibarrApi
/** /**
* Generate a Document from a bank account record (like SEPA mandate) * Generate a Document from a bank account record (like SEPA mandate)
* *
* @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

@ -66,8 +66,8 @@ 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