Skip to content

Commit

Permalink
Update api_invoices.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Feb 23, 2019
1 parent f1e4c80 commit 0e093ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/compta/facture/class/api_invoices.class.php
Expand Up @@ -239,7 +239,7 @@ function post($request_data = null)
*
* @param int $orderid Id of the order
*
* @url POST /createfromorder/{orderid}
$this->db->begin(); * @url POST /createfromorder/{orderid}
*
* @return int
* @throws 400
Expand Down Expand Up @@ -393,7 +393,7 @@ function postContact($id, $contactid, $type)
}

$result = $this->invoice->fetch($id);

$this->db->begin();
if(!$result) {
throw new RestException(404, 'Invoice not found');
}
Expand Down Expand Up @@ -587,7 +587,7 @@ function delete($id)
*
* @param int $id Id of invoice
* @param array $request_data InvoiceLine data
*$this->db->begin();
*
* @url POST {id}/lines
*
* @return int
Expand Down

0 comments on commit 0e093ff

Please sign in to comment.