phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5329 - phpcompta/tags/rel660/include/template


From: phpcompta-dev
Subject: [Phpcompta-dev] r5329 - phpcompta/tags/rel660/include/template
Date: Sat, 29 Jun 2013 00:56:51 +0200 (CEST)

Author: danydb
Date: 2013-06-29 00:56:50 +0200 (Sat, 29 Jun 2013)
New Revision: 5329

Modified:
   phpcompta/tags/rel660/include/template/forecast_result.php
Log:
Bug #0000859: FORECAST ; bug Total Categorie reel

Modified: phpcompta/tags/rel660/include/template/forecast_result.php
===================================================================
--- phpcompta/tags/rel660/include/template/forecast_result.php  2013-06-28 
22:34:51 UTC (rev 5328)
+++ phpcompta/tags/rel660/include/template/forecast_result.php  2013-06-28 
22:56:50 UTC (rev 5329)
@@ -4,7 +4,7 @@
 <?php if (count($aItem[$i])==0) continue;?>
 <fieldset>
 <legend>
-<?php echo $aCat[$i]['fc_desc'];$tot_cat_estm=0;$tot_cat_real=0;?>
+<?php echo 
$aCat[$i]['fc_desc'];$tot_cat_estm=0;$tot_cat_real=0;$tot_cum_real=0;?>
 </legend>
 
 <?php for ($e=0;$e<count($aItem[$i]);$e++):?>
@@ -79,12 +79,15 @@
                <tr>
                        <td>
                                                <?php echo _('Total réel');
-                                               $tot_cat_real = 0;?>
+
+                                               $tot_cat_real = 0;
+                                               ?>
                                        </td>
                                <?php for ($h = 0; $h < count($aPeriode); 
$h++):?>
                                <td align="right">
-                               <?php 
+                               <?php
                                $tot_cat_real = bcadd($tot_cat_real, 
$aReal[$i][$e][$h]);
+                               
$tot_cum_real=bcadd($tot_cum_real,$aReal[$i][$e][$h]);
                                echo nbm($tot_cat_real);
                        ?>
                        </td>
@@ -97,7 +100,7 @@
 </td>
 <?php for ($h=0;$h<count($aPeriode);$h++):?>
 
-    <?php 
+    <?php
  $diff= bcsub( $aReal[$i][$e][$h],$estm[$i][$e][$h]);
 if ( ($aItem[$i][$e]['fi_debit'] == 'C' && $diff < 0) || 
($aItem[$i][$e]['fi_debit'] == 'D' && $diff > 0))
   {
@@ -111,7 +114,7 @@
   {
     echo '<td style="text-align:right;background-color:green;color:white">';
   }
-  
+
 echo nbm( $diff);
 ?>
 </td>
@@ -170,10 +173,10 @@
 <?php echo td(_('Total Catégorie estimé'));echo td(nbm($tot_cat_estm),'num');?>
 </tr>
 <tr>
-<?php echo td(_('Total Catégorie réel'));echo td(nbm($tot_cat_real),'num');?>
+<?php echo td(_('Total Catégorie réel'));echo td(nbm($tot_cum_real),'num');?>
 </tr>
 <tr>
-<?php echo td(_('Différence'));echo 
td(nbm($tot_cat_real-$tot_cat_estm),'num');?>
+<?php echo td(_('Différence'));echo 
td(nbm($tot_cum_real-$tot_cat_estm),'num');?>
 </tr>
 </table>
 </fieldset>
@@ -182,12 +185,12 @@
 <?php endfor;?>
 <?php if ( ! empty ($error) ) : ?>
 <div class="error">
-Désolé il y a des formules incorrectes 
+Désolé il y a des formules incorrectes
 <ul style="list-style-type:none">
 
    <?php $last="";?>
    <?php for ($i=0;$i<count($error);$i++) : ?>
-<?php 
+<?php
    if ( $last != $error[$i] ) {  echo h($error[$i]); }
 $last=$error[$i];
 endfor;



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]