Fix: Better error management
This commit is contained in:
parent
fafd426903
commit
ff3c8ec0be
1 changed files with 7 additions and 1 deletions
|
|
@ -378,7 +378,13 @@ function getSupplierInvoicesForThirdParty($authentication,$idthirdparty)
|
|||
$obj=$db->fetch_object($resql);
|
||||
|
||||
$invoice=new FactureFournisseur($db);
|
||||
$invoice->fetch($obj->facid);
|
||||
$result=$invoice->fetch($obj->facid);
|
||||
if ($result < 0)
|
||||
{
|
||||
$error++;
|
||||
$errorcode=$result; $errorlabel=$invoice->error;
|
||||
break;
|
||||
}
|
||||
|
||||
// Define lines of invoice
|
||||
$linesresp=array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue