Added @throws annotations for possible exceptions
This commit is contained in:
parent
f37b8c78c8
commit
6edf5494c3
@ -184,7 +184,9 @@ class BankAccounts extends DolibarrApi
|
|||||||
* @status 201
|
* @status 201
|
||||||
*
|
*
|
||||||
* @throws 401 Unauthorized: User does not have permission to configure bank accounts
|
* @throws 401 Unauthorized: User does not have permission to configure bank accounts
|
||||||
|
* @throws 404 Not Found: Either the source or the destination bankaccount for the provided id does not exist
|
||||||
* @throws 422 Unprocessable Entity: Refer to detailed exception message for the cause
|
* @throws 422 Unprocessable Entity: Refer to detailed exception message for the cause
|
||||||
|
* @throws 500 Internal Server Error: Error(s) returned by the RDBMS
|
||||||
*/
|
*/
|
||||||
public function transfer($bankaccount_from_id = 0, $bankaccount_to_id = 0, $date = null, $description = "", $amount = 0.0, $amount_to = 0.0)
|
public function transfer($bankaccount_from_id = 0, $bankaccount_to_id = 0, $date = null, $description = "", $amount = 0.0, $amount_to = 0.0)
|
||||||
{
|
{
|
||||||
@ -283,7 +285,7 @@ class BankAccounts extends DolibarrApi
|
|||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user