Skip to content

Commit

Permalink
Error report
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 10, 2018
1 parent f2b8c3c commit 436b653
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facture.class.php
Expand Up @@ -1342,7 +1342,7 @@ function fetch($rowid, $ref='', $ref_ext='', $ref_int='', $fetch_situation=false
}
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;
}
Expand Down
3 changes: 2 additions & 1 deletion htdocs/compta/paiement/class/paiement.class.php
Expand Up @@ -147,7 +147,7 @@ function fetch($id, $ref='', $fk_bank='')
* @param int $closepaidinvoices 1=Also close payed invoices to paid, 0=Do nothing more
* @return int id of created payment, < 0 if error
*/
function create($user,$closepaidinvoices=0)
function create($user, $closepaidinvoices=0)
{
global $conf, $langs;

Expand Down Expand Up @@ -190,6 +190,7 @@ function create($user,$closepaidinvoices=0)
// 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;
}
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/lib/functions.lib.php
Expand Up @@ -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)
Expand Down

0 comments on commit 436b653

Please sign in to comment.