From ef2bb2a047d81999d2d59852ec0de67985113915 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 17 Oct 2013 19:44:41 +0000 Subject: [PATCH] add the possibility to add an SQL stmt to parse_formula, used by plugin --- include/class_impress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_impress.php b/include/class_impress.php index 75cd82a65..e37a3eb90 100644 --- a/include/class_impress.php +++ b/include/class_impress.php @@ -40,7 +40,7 @@ class Impress * * */ - 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 @@ class Impress // 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')