Update api_invoices.class.php

This commit is contained in:
Frédéric FRANCE 2019-02-23 16:44:36 +01:00 committed by GitHub
parent 0e093ffb24
commit 4b0b8e1c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,7 +239,7 @@ class Invoices extends DolibarrApi
*
* @param int $orderid Id of the order
*
$this->db->begin(); * @url POST /createfromorder/{orderid}
* @url POST /createfromorder/{orderid}
*
* @return int
* @throws 400
@ -393,7 +393,7 @@ $this->db->begin(); * @url POST /createfromorder/{orderid}
}
$result = $this->invoice->fetch($id);
$this->db->begin();
if(!$result) {
throw new RestException(404, 'Invoice not found');
}