Author: danydb
Date: 2011-11-28 22:05:20 +0100 (Mon, 28 Nov 2011)
New Revision: 4503
Modified:
phpcompta/trunk/include/class_fiche.php
phpcompta/trunk/include/constant.php
Log:
return a array with 0 for get_solde_detail
Modified: phpcompta/trunk/include/class_fiche.php
===================================================================
--- phpcompta/trunk/include/class_fiche.php 2011-11-28 21:04:18 UTC (rev
4502)
+++ phpcompta/trunk/include/class_fiche.php 2011-11-28 21:05:20 UTC (rev
4503)
@@ -1423,7 +1423,7 @@
*/
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;
Modified: phpcompta/trunk/include/constant.php
===================================================================
--- phpcompta/trunk/include/constant.php 2011-11-28 21:04:18 UTC (rev
4502)
+++ phpcompta/trunk/include/constant.php 2011-11-28 21:05:20 UTC (rev
4503)
@@ -41,7 +41,7 @@
*
*/
$version_phpcompta=4444;
-define ("DEBUG",false);
+define ("DEBUG",true);
define ("DBVERSION",98);
define ("DBVERSIONREPO",14);
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev