add the possibility to add an SQL stmt to parse_formula, used by plugin
This commit is contained in:
parent
5f6bb97820
commit
ef2bb2a047
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue