phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5573 - in phpcompta/tags/rel670/include: . template


From: phpcompta-dev
Subject: [Phpcompta-dev] r5573 - in phpcompta/tags/rel670/include: . template
Date: Fri, 6 Dec 2013 13:01:06 +0100 (CET)

Author: danydb
Date: 2013-12-06 13:01:05 +0100 (Fri, 06 Dec 2013)
New Revision: 5573

Modified:
   phpcompta/tags/rel670/include/fiche.inc.php
   phpcompta/tags/rel670/include/template/result_cat_card_summary.php
Log:
task #926 : CARD : balance et balance non sold?\195?\169e
Task #926 - CARD : balance et balance non sold?\195?\169e

Modified: phpcompta/tags/rel670/include/fiche.inc.php
===================================================================
--- phpcompta/tags/rel670/include/fiche.inc.php 2013-12-06 11:32:43 UTC (rev 
5572)
+++ phpcompta/tags/rel670/include/fiche.inc.php 2013-12-06 12:01:05 UTC (rev 
5573)
@@ -309,7 +309,9 @@
                                continue;
                }
                echo '<h2>' . $cn->get_value("select fd_label from fiche_def 
where fd_id=$1", array($afiche[$e]['fd_id'])) . '</h2>';
-               echo '<table class="result" style="width:80%;margin-left:10%">';
+                $id="table_".$afiche[$e]."_id";
+                echo _('Filtre rapide:').HtmlInput::filter_table($id, '0,1,2', 
'1'); 
+               echo '<table class="sortable" id="'.$id.'" class="result" 
style="width:80%;margin-left:10%">';
                echo tr(
                                th('Quick Code') .
                                th('Libellé') .
@@ -341,15 +343,16 @@
                                        td(HtmlInput::history_card($oCard->id, 
$oCard->strAttribut(ATTR_DEF_QUICKCODE))) .
                                        td($oCard->strAttribut(ATTR_DEF_NAME)) .
                                        
td($oCard->strAttribut(ATTR_DEF_ACCOUNT)).
-                                       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(nbm($solde['debit']), 
'class="sorttable_numeric" sorttable_customkey="'.$solde['debit'].'" 
style="text-align:right"') .
+                                       td(nbm($solde['credit']), 
'class="sorttable_numeric" sorttable_customkey="'.$solde['debit'].'" 
style="text-align:right"') .
+                                       td(nbm(abs($solde['solde'])), 
'class="sorttable_numeric" sorttable_customkey="'.$solde['solde'].'" 
style="text-align:right"') .
                                        td((($solde['debit'] < 
$solde['credit']) ? 'CRED' : 'DEB'), 'style="text-align:right"'), $class
                        );
 
 
 
                }
+                echo '<tfoot>';
                 echo tr(
                                 td('').
                                 td(_('Totaux')).
@@ -358,6 +361,7 @@
                                 td(nbm($sum_cred), 'style="text-align:right"').
                                 td(nbm(abs($sum_solde)), 
'style="text-align:right"').
                                 td((($sum_deb < $sum_cred) ? 'CRED' : 'DEB'), 
'style="text-align:right"'),"");
+                echo '</tfoot>';
                echo '</table>';
        }
        if ( $allcard == 0 ) echo $str_add_card;

Modified: phpcompta/tags/rel670/include/template/result_cat_card_summary.php
===================================================================
--- phpcompta/tags/rel670/include/template/result_cat_card_summary.php  
2013-12-06 11:32:43 UTC (rev 5572)
+++ phpcompta/tags/rel670/include/template/result_cat_card_summary.php  
2013-12-06 12:01:05 UTC (rev 5573)
@@ -2,7 +2,7 @@
 Filtre rapide :    
     <?php
     $col="";$sp="";
-    for ($e=0;$e<count($aHeading);$e++) {$col.=$e.$sp; $sp=",";}
+    for ($e=0;$e<count($aHeading);$e++) {$col.=$sp.$e; $sp=",";}
     echo HtmlInput::filter_table("fiche_tb_id", $col, '1'); 
     ?>
 <table id="fiche_tb_id" class="sortable">



---
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]