Task #1224 - BALANCE : les totaux devraient avoir le solde
#1224 : solde si utilisation filtre par poste comptable
This commit is contained in:
parent
d3ece86653
commit
dbdaaaf853
2 changed files with 7 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ require_once NOALYSS_INCLUDE.'/class/class_exercice.php';
|
|||
global $g_user;
|
||||
$gDossier=dossier::id();
|
||||
$exercice=(isset($_GET['exercice']))?$_GET['exercice']:$g_user->get_exercice();
|
||||
|
||||
bcscale(2);
|
||||
|
||||
echo '<div class="content">';
|
||||
/*
|
||||
|
|
@ -247,6 +247,7 @@ if ( isset ($_GET['view'] ) )
|
|||
//-----------------------------------------------------
|
||||
if ( isset($_GET['view'] ) )
|
||||
{
|
||||
|
||||
$bal=new Acc_Balance($cn);
|
||||
if ( $_GET['p_filter']==1)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -229,8 +229,12 @@ class Acc_Balance
|
|||
}//for i
|
||||
// Add the saldo
|
||||
$i+=1;
|
||||
$delta=bcsub($tot_deb,$tot_cred);
|
||||
$side_delta=($delta<0)?"C":"D";
|
||||
$side_delta=($delta==0)?"=":$side_delta;
|
||||
|
||||
$a['poste']="";
|
||||
$a['label']="Totaux ";
|
||||
$a['label']="Totaux ".nbm(abs($delta)).$side_delta;
|
||||
$a['sum_deb']=$tot_deb;
|
||||
$a['sum_cred']=$tot_cred;
|
||||
$a['solde_deb']=$tot_deb_saldo;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue