noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
Variables
verif_bilan.inc.php File Reference

Verify the saldo of ledger: independant file. More...

Go to the source code of this file.

Variables

 $a_account_used = $cn->get_array($sql_account_used)
 $a_operation = Database::fetch_all($ret_operation)
 $a_qcode = $cn->get_array($sql_qcode)
 $all_dep = Database::fetch_all($poste)
 $bilan = new Acc_Bilan($cn)
 $cn = new Database(dossier::id())
 $cred = $cn->get_value("select sum (j_montant) from jrnx where j_debit='f' $sql_year ")
foreach($jrn as $l) $deb = $cn->get_value("select sum (j_montant) from jrnx where j_debit='t' $sql_year ")
 $exercice = $g_user->get_exercice()
global $g_captcha
global $g_failed
global $g_succeed
 $ix = 0
 $jrn = Database::fetch_all($res)
 $nb_account_used = count ($a_account_used)
 $nb_operation = count($a_operation)
 $periode = new Periode($cn)
 $res = $cn->exec_sql($sql)
if($nb_account_used==0) $ret = $cn->prepare('get_operation',$sql_concerned_operation)
 $ret_operation = $cn->execute('get_operation',array($a_account_used[$i]['f_id']))
 $sql = "select jrn_def_id,jrn_def_name from jrn_def"
 $sql_account_used
 $sql_concerned_operation
 $sql_poste = "select distinct j_poste,pcm_lib from jrnx join tmp_pcmn on (pcm_val=j_poste) where j_qcode =$1 $sql_year"
 $sql_qcode
 $sql_year = "')"
 $sql_year_source = "')"
 $sql_year_target = "')"
 endfor
 for ($x=0;$x<$nb_operation;$x++)
$bilan from = $start_periode->p_id
$bilan to = $end_periode->p_id

Detailed Description

Verify the saldo of ledger: independant file.

Definition in file verif_bilan.inc.php.


Variable Documentation

$a_account_used = $cn->get_array($sql_account_used)

Definition at line 173 of file verif_bilan.inc.php.

$a_operation = Database::fetch_all($ret_operation)

Definition at line 191 of file verif_bilan.inc.php.

$a_qcode = $cn->get_array($sql_qcode)

Definition at line 114 of file verif_bilan.inc.php.

$all_dep = Database::fetch_all($poste)

Definition at line 133 of file verif_bilan.inc.php.

$bilan = new Acc_Bilan($cn)

Definition at line 85 of file verif_bilan.inc.php.

$cn = new Database(dossier::id())

Definition at line 32 of file verif_bilan.inc.php.

$cred = $cn->get_value("select sum (j_montant) from jrnx where j_debit='f' $sql_year ")
foreach ($jrn as $l) $deb = $cn->get_value("select sum (j_montant) from jrnx where j_debit='t' $sql_year ")
$exercice = $g_user->get_exercice()

Definition at line 33 of file verif_bilan.inc.php.

global $g_captcha

Definition at line 27 of file verif_bilan.inc.php.

global $g_failed

Definition at line 27 of file verif_bilan.inc.php.

global $g_succeed

Definition at line 27 of file verif_bilan.inc.php.

$ix = 0
$nb_account_used = count ($a_account_used)

Definition at line 174 of file verif_bilan.inc.php.

$nb_operation = count($a_operation)

Definition at line 192 of file verif_bilan.inc.php.

$periode = new Periode($cn)

Definition at line 86 of file verif_bilan.inc.php.

$res = $cn->exec_sql($sql)

Definition at line 40 of file verif_bilan.inc.php.

if ($nb_account_used==0) $ret = $cn->prepare('get_operation',$sql_concerned_operation)

Definition at line 179 of file verif_bilan.inc.php.

$ret_operation = $cn->execute('get_operation',array($a_account_used[$i]['f_id']))

Definition at line 190 of file verif_bilan.inc.php.

$sql = "select jrn_def_id,jrn_def_name from jrn_def"

Definition at line 39 of file verif_bilan.inc.php.

$sql_account_used
Initial value:
"
    select distinct vw.f_id,j_poste ,vw_name,quick_code
    from vw_poste_qcode as vw 
    join jrnx using (j_poste) 
    join vw_fiche_attr as v_attr on (vw.f_id=v_attr.f_id)
    join jrn on (jrnx.j_grpt=jrn.jr_grpt_id) 
    where 
        jrnx.f_id is null  $sql_year order by 1
"

Definition at line 157 of file verif_bilan.inc.php.

$sql_concerned_operation
Initial value:
"select vw.f_id,jrnx.j_date,jrnx.j_id,jrn.jr_id,jrnx.j_poste,jr_internal ,jr_comment
    from vw_poste_qcode as vw 
    join jrnx using (j_poste) 
    join jrn on (jrnx.j_grpt=jrn.jr_grpt_id) 
    where 
    jrnx.f_id is null and vw.f_id= $1 $sql_year"

Definition at line 167 of file verif_bilan.inc.php.

$sql_poste = "select distinct j_poste,pcm_lib from jrnx join tmp_pcmn on (pcm_val=j_poste) where j_qcode =$1 $sql_year"

Definition at line 113 of file verif_bilan.inc.php.

$sql_qcode
Initial value:
"select distinct source.f_id,source.j_qcode 
            from jrnx as source ,jrnx as target 
            where
            source.j_id < target.j_id 
            and source.j_poste<>target.j_poste 
            and source.j_qcode = target.j_qcode
            and $sql_year_source and $sql_year_target
           "

Definition at line 105 of file verif_bilan.inc.php.

$sql_year = "')"

Definition at line 36 of file verif_bilan.inc.php.

$sql_year_source = "')"

Definition at line 103 of file verif_bilan.inc.php.

$sql_year_target = "')"

Definition at line 102 of file verif_bilan.inc.php.

Definition at line 145 of file verif_bilan.inc.php.

for($x=0;$x<$nb_operation;$x++)

Definition at line 195 of file verif_bilan.inc.php.

$bilan from = $start_periode->p_id
$bilan to = $end_periode->p_id
 All Data Structures Namespaces Files Functions Variables Enumerations