return a array with 0 for get_solde_detail

This commit is contained in:
Dany De Bontridder 2011-11-28 21:05:20 +00:00
parent 896706c74d
commit e42c04e955
2 changed files with 2 additions and 2 deletions

View file

@ -1423,7 +1423,7 @@ class Fiche
*/
function get_solde_detail($p_cond="")
{
if ( $this->id == 0 ) exit('fiche->id est nul');
if ( $this->id == 0 ) return array('credit'=>0,'debit'=>0,'solde'=>0);
$qcode=$this->strAttribut(ATTR_DEF_QUICKCODE);
if ( $p_cond != "") $p_cond=" and ".$p_cond;

View file

@ -41,7 +41,7 @@ $g_captcha=false;
*
*/
$version_phpcompta=4444;
define ("DEBUG",false);
define ("DEBUG",true);
define ("DBVERSION",98);
define ("DBVERSIONREPO",14);