From 70cb042e58c8f27d1534815694b8251672e4515b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Mar 2019 12:06:57 +0100 Subject: [PATCH] Update api_invoices.class.php --- htdocs/compta/facture/class/api_invoices.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/api_invoices.class.php b/htdocs/compta/facture/class/api_invoices.class.php index 2698e1ebec2..68711485cad 100644 --- a/htdocs/compta/facture/class/api_invoices.class.php +++ b/htdocs/compta/facture/class/api_invoices.class.php @@ -227,7 +227,7 @@ class Invoices extends DolibarrApi $this->invoice->lines = $lines; }*/ - if ($this->invoice->create(DolibarrApiAccess::$user,0,$request_data["date_lim_reglement"]) < 0) { + if ($this->invoice->create(DolibarrApiAccess::$user, 0, $request_data["date_lim_reglement"]) < 0) { throw new RestException(500, "Error creating invoice", array_merge(array($this->invoice->error), $this->invoice->errors)); } return $this->invoice->id;