phpcompta  Version-6
 All Data Structures Namespaces Files Functions Variables Pages
Variables
verif_bilan.inc.php File Reference

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

Go to the source code of this file.

Variables

 $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 ")
 
 $deb =$cn->get_value("select sum (j_montant) from jrnx where j_debit='t' $sql_year ")
 
 $exercice =$g_user->get_exercice()
 
 $jrn =Database::fetch_all($res)
 
 $periode =new Periode($cn)
 
 $res =$cn->exec_sql($sql)
 
 $sql ="select jrn_def_id,jrn_def_name from jrn_def"
 
 $sql_year =" and j_tech_per in (select p_id from parm_periode where p_exercice='".$g_user->get_exercice()."')"
 
if($cred==$deb) else
 
 foreach ($jrn as $l)
 
$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

$bilan =new Acc_Bilan($cn)

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

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

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

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

$periode =new Periode($cn)

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

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

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

$sql ="select jrn_def_id,jrn_def_name from jrn_def"

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

$sql_year =" and j_tech_per in (select p_id from parm_periode where p_exercice='".$g_user->get_exercice()."')"

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

if ($cred==$deb) else
Initial value:
{
$result ='<span style="color:red;font-size:120%;font-weight:bold;"> NON OK </span>'

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

foreach($jrn as $l)

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

$bilan from =$start_periode->p_id
$bilan to =$end_periode->p_id