phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5506 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5506 - phpcompta/trunk/include
Date: Thu, 17 Oct 2013 21:44:41 +0200 (CEST)

Author: danydb
Date: 2013-10-17 21:44:41 +0200 (Thu, 17 Oct 2013)
New Revision: 5506

Modified:
   phpcompta/trunk/include/class_impress.php
Log:
add the possibility to add an SQL stmt to parse_formula, used by plugin

Modified: phpcompta/trunk/include/class_impress.php
===================================================================
--- phpcompta/trunk/include/class_impress.php   2013-10-16 21:56:08 UTC (rev 
5505)
+++ phpcompta/trunk/include/class_impress.php   2013-10-17 19:44:41 UTC (rev 
5506)
@@ -40,7 +40,7 @@
      *
      *
      */
-    static function 
parse_formula($p_cn,$p_label,$p_formula,$p_start,$p_end,$p_eval=true,$p_type_date=0)
+    static function 
parse_formula($p_cn,$p_label,$p_formula,$p_start,$p_end,$p_eval=true,$p_type_date=0,$p_sql="")
     {
         global $g_user;
         if ( Impress::check_formula($p_formula) == false)
@@ -138,7 +138,7 @@
 
                 // Get sum of account
                 $P=new Acc_Account_Ledger($p_cn,$line);
-                $detail=$P->get_solde_detail($cond);
+                $detail=$P->get_solde_detail($cond.$p_sql);
 
 
                 if ( $compute=='all')



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]