phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4774 - phpcompta/tags/rel600/include/template


From: phpcompta-dev
Subject: [Phpcompta-dev] r4774 - phpcompta/tags/rel600/include/template
Date: Mon, 20 Feb 2012 09:24:08 +0100 (CET)

Author: danydb
Date: 2012-02-20 09:24:08 +0100 (Mon, 20 Feb 2012)
New Revision: 4774

Modified:
   phpcompta/tags/rel600/include/template/ledger_detail_misc.php
Log:
0000525: Le contr?\195?\180le des montants analytiques d'une ?\195?\169criture 
?\195?\160 plusieurs ligne (ex: salaires) en modification met tout en rouge


Modified: phpcompta/tags/rel600/include/template/ledger_detail_misc.php
===================================================================
--- phpcompta/tags/rel600/include/template/ledger_detail_misc.php       
2012-02-17 00:26:16 UTC (rev 4773)
+++ phpcompta/tags/rel600/include/template/ledger_detail_misc.php       
2012-02-20 08:24:08 UTC (rev 4774)
@@ -99,6 +99,7 @@
       echo Anc_Plan::hidden($a_anc);
     }
 echo '</tr>';
+$amount_idx=0;
   for ($e=0;$e<count($obj->det->array);$e++) {
     $row=''; $q=$obj->det->array;
     $view_history= sprintf('<A class="detail" 
style="text-decoration:underline" 
HREF="javascript:view_history_account(\'%s\',\'%s\')" >%s</A>',
@@ -151,13 +152,13 @@
     /* Analytic accountancy */
     if ( $owner->MY_ANALYTIC != "nu" && $div=='popup'){
       if ( preg_match('/^(6|7)/',$q[$e]['j_poste'])) {
-
-echo HtmlInput::hidden("amount_t".$e,$montant);
+       
+       echo HtmlInput::hidden("amount_t".$amount_idx,$q[$e]['j_montant']);
        $anc_op=new Anc_Operation($cn);
        $anc_op->j_id=$q[$e]['j_id'];
        echo HtmlInput::hidden('op[]',$anc_op->j_id);
        $row.=$anc_op->display_table(1,$q[$e]['j_montant'],$div);
-
+       $amount_idx++;
       }  else {
        $row.=td('');
       }



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