phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5077 - in phpcompta/tags/rel650: html/js include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5077 - in phpcompta/tags/rel650: html/js include
Date: Thu, 19 Jul 2012 18:13:19 +0200 (CEST)

Author: danydb
Date: 2012-07-19 18:13:18 +0200 (Thu, 19 Jul 2012)
New Revision: 5077

Modified:
   phpcompta/tags/rel650/html/js/infobulle.js
   phpcompta/tags/rel650/html/js/scripts.js
   phpcompta/tags/rel650/include/compta_fin_rec.inc.php
Log:
Add script for Javascript sort of table for reconciliation bank

Modified: phpcompta/tags/rel650/html/js/infobulle.js
===================================================================
--- phpcompta/tags/rel650/html/js/infobulle.js  2012-07-19 15:52:24 UTC (rev 
5076)
+++ phpcompta/tags/rel650/html/js/infobulle.js  2012-07-19 16:13:18 UTC (rev 
5077)
@@ -44,6 +44,7 @@
 content[14]="Attention, le poste comptable doit exister, il ne sera pas 
vérifié";
 content[15]="Laissez à 0 pour ne rien changer";
 content[16]="Vous devez donner la date par opération";
+content[17]="Cliquez sur le titre d'une colonne pour trier";
 
 function showBulle(p_ctl)
 {

Modified: phpcompta/tags/rel650/html/js/scripts.js
===================================================================
--- phpcompta/tags/rel650/html/js/scripts.js    2012-07-19 15:52:24 UTC (rev 
5076)
+++ phpcompta/tags/rel650/html/js/scripts.js    2012-07-19 16:13:18 UTC (rev 
5077)
@@ -659,7 +659,8 @@
        // the box is closed
        if ( ask_reload == 1)
        {
-               window.location.reload;
+               // avoid POST window.location = window.location.href;
+               window.location.reload();
        }
 }
 /**

Modified: phpcompta/tags/rel650/include/compta_fin_rec.inc.php
===================================================================
--- phpcompta/tags/rel650/include/compta_fin_rec.inc.php        2012-07-19 
15:52:24 UTC (rev 5076)
+++ phpcompta/tags/rel650/include/compta_fin_rec.inc.php        2012-07-19 
16:13:18 UTC (rev 5077)
@@ -74,7 +74,7 @@
                  {
                    echo '<div class="content">'.$g_succeed.' Mise à jour 
extrait '.$_POST['ext'].'</div>';
                  }
-               
+
                $cn->commit();
        }
 }
@@ -101,7 +101,11 @@
 echo dossier::hidden();
 echo HtmlInput::get_to_hidden(array('sa', 'p_action', 'p_jrn'));
 
-$operation = $cn->get_array("select 
jr_id,jr_internal,jr_comment,to_char(jr_date,'DD.MM.YYYY') as 
fmt_date,jr_montant
+$operation = $cn->get_array("select jr_id,jr_internal,
+                                                               jr_comment,
+                                                               
to_char(jr_date,'DD.MM.YYYY') as fmt_date,
+                                                               jr_montant,
+                                                               
to_char(jr_date,'YYYYMMDD') as raw_date
                               from jrn where jr_def_id=$1 and (jr_pj_number is 
null or jr_pj_number='') order by jr_date", array($Ledger->id));
 echo '<span id="bkname">' . hb(h($Ledger->get_bank_name())) . '</span>';
 echo '<p>';
@@ -118,8 +122,8 @@
 echo IButton::tooggle_checkbox('rec1');
 echo '</p>';
 echo HtmlInput::submit('save', 'Mettre à jour le n° de relevé bancaire');
-echo '<table class="result" style="width:80%;margin-left:10%">';
-$r = th('Date');
+echo '<table class="sortable" style="width:80%;margin-left:10%">';
+$r ='<th>'.'Date '.HtmlInput::infobulle(17).'</th>';
 $r.=th('Libellé');
 $r.=th('N° interne');
 $r.=th('Montant', ' style="text-align:right"');
@@ -133,11 +137,11 @@
        $row = $operation[$i];
        $r = '';
        $js = HtmlInput::detail_op($row['jr_id'], $row['jr_internal']);
-       $r.=td($row['fmt_date']);
+       $r.='<td 
sorttable_customkey="'.$row['raw_date'].'">'.$row['fmt_date'].'</td>';
        $r.=td($row['jr_comment']);
        $r.=td($js);
        $amount=$cn->get_value('select qf_amount from quant_fin where 
jr_id=$1', array($row['jr_id']));
-       $r.=td(nbm ($amount), ' class="num" ');
+       $r.='<td class="num" class="sorttable_numeric" 
sortable_customekey="'.$amount.'">'.nbm ($amount).'</td>';
 
        $diff=bcadd($diff,$amount);
        $tot_not_reconcilied+=$row['jr_montant'];
@@ -154,7 +158,7 @@
                        }
                }
        }
-       $r.=td(HtmlInput::hidden('jrid[]', $row['jr_id']) . $iradio->input(), ' 
style="text-align:center" ');
+       $r.=td(HtmlInput::hidden('jrid['.$i.']', $row['jr_id']) . 
$iradio->input(), ' style="text-align:center" ');
        if ($i % 2 == 0)
                echo tr($r, ' class="odd" ');
        else



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