/[phpcompta]/phpcompta/include/user_form_ods.php
ViewVC logotype

Diff of /phpcompta/include/user_form_ods.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by sparkyx, Thu Oct 27 14:04:12 2005 UTC revision 1.2 by sparkyx, Fri Oct 28 12:53:55 2005 UTC
# Line 107  function FormODS($p_cn,$p_jrn,$p_periode Line 107  function FormODS($p_cn,$p_jrn,$p_periode
107    $sum_deb=0.0;    $sum_deb=0.0;
108    $sum_cred=0.0;    $sum_cred=0.0;
109    
110      // for each good
111    for ($i=0;$i< $p_article;$i++) {    for ($i=0;$i< $p_article;$i++) {
112    
113      $account=(isset(${"e_account$i"}))?${"e_account$i"}:"";      $account=(isset(${"e_account$i"}))?${"e_account$i"}:"";
# Line 155  function FormODS($p_cn,$p_jrn,$p_periode Line 155  function FormODS($p_cn,$p_jrn,$p_periode
155      //libelle      //libelle
156      $r.="<td> $lib </td>";      $r.="<td> $lib </td>";
157      //amount      //amount
     //    $r.=InputType("","text","e_account".$i."_amount",${"e_account$i"."_amount"},$pview_only);  
158      $wAmount=new widget("text");      $wAmount=new widget("text");
159      $wAmount->table=1;      $wAmount->table=1;
160      $wAmount->SetReadOnly($pview_only);      $wAmount->SetReadOnly($pview_only);
# Line 178  function FormODS($p_cn,$p_jrn,$p_periode Line 177  function FormODS($p_cn,$p_jrn,$p_periode
177      $r.='</TR>';      $r.='</TR>';
178      $sum_deb+=(${"e_account$i"."_type"}=='d')?${"e_account$i"."_amount"}:0;      $sum_deb+=(${"e_account$i"."_type"}=='d')?${"e_account$i"."_amount"}:0;
179      $sum_cred+=(${"e_account$i"."_type"}=='c')?${"e_account$i"."_amount"}:0;      $sum_cred+=(${"e_account$i"."_type"}=='c')?${"e_account$i"."_amount"}:0;
180    }    } // End for
181    
182    $r.="</TABLE>";    $r.="</TABLE>";
183    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26