forked from Wavyzz/dolibarr
Error report
This commit is contained in:
@@ -1342,7 +1342,7 @@ class Facture extends CommonInvoice
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->error='Bill with id '.$rowid.' or ref '.$ref.' not found';
|
||||
$this->error='Bill with id='.$rowid.' or ref='.$ref.' or ref_ext='.$ref_ext.' not found';
|
||||
dol_syslog(get_class($this)."::fetch Error ".$this->error, LOG_ERR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -190,6 +190,7 @@ class Paiement extends CommonObject
|
||||
// Check parameters
|
||||
if (empty($totalamount) && empty($atleastonepaymentnotnull)) // We accept negative amounts for withdraw reject but not empty arrays
|
||||
{
|
||||
$this->errors[]='TotalAmountEmpty';
|
||||
$this->error='TotalAmountEmpty';
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -6174,6 +6174,7 @@ function dol_getIdFromCode($db, $key, $tablename, $fieldkey='code', $fieldid='id
|
||||
$sql.= " WHERE ".$fieldkey." = '".$db->escape($key)."'";
|
||||
if (! empty($entityfilter))
|
||||
$sql.= " AND entity IN (" . getEntity($tablename) . ")";
|
||||
|
||||
dol_syslog('dol_getIdFromCode', LOG_DEBUG);
|
||||
$resql = $db->query($sql);
|
||||
if ($resql)
|
||||
|
||||
Reference in New Issue
Block a user