#188 Dans les impressions->catégorie de fiche->balance, le solde est toujours indiqué comme étant DEB.

This commit is contained in:
Dany De Bontridder 2011-01-12 20:10:42 +00:00
parent 478b68f91b
commit 33d64f2218

View file

@ -131,8 +131,8 @@ if ( $_GET['histo'] == 4 )
$fd=new Fiche_Def($cn,$_REQUEST['cat']);
if ( $fd->hasAttribute(ATTR_DEF_ACCOUNT) == false )
{
echo "Cette catégorie n'ayant pas de poste comptable n'a pas de balance";
exit;
echo alert("Cette catégorie n'ayant pas de poste comptable n'a pas de balance");
exit;
}
$aCard=$cn->get_array("select f_id,ad_value from fiche join fiche_detail using(f_id) where fd_id=$1 and ad_id=1 order by 2 ",array($_REQUEST['cat']));
if ( empty($aCard))
@ -166,7 +166,7 @@ if ( $_GET['histo'] == 4 )
td(nbm($solde['debit']),'style="text-align:right"').
td(nbm($solde['credit']),'style="text-align:right"').
td(nbm(abs($solde['solde'])),'style="text-align:right"').
td((($solde['solde']<0)?'CRED':'DEB'),'style="text-align:right"'),
td((($solde['debit']<$solde['credit'])?'CRED':'DEB'),'style="text-align:right"'),
$class
);