Update api_invoices.class.php

This commit is contained in:
Frédéric FRANCE 2019-02-23 16:41:40 +01:00 committed by GitHub
parent f1e4c80771
commit 0e093ffb24
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
*
* @url POST /createfromorder/{orderid}
$this->db->begin(); * @url POST /createfromorder/{orderid}
*
* @return int
* @throws 400
@ -393,7 +393,7 @@ class Invoices extends DolibarrApi
}
$result = $this->invoice->fetch($id);
$this->db->begin();
if(!$result) {
throw new RestException(404, 'Invoice not found');
}
@ -587,7 +587,7 @@ class Invoices extends DolibarrApi
*
* @param int $id Id of invoice
* @param array $request_data InvoiceLine data
*$this->db->begin();
*
* @url POST {id}/lines
*
* @return int