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

Diff of /phpcompta/include/user_form_fin.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 113  function FormFin($p_cn,$p_jrn,$p_periode Line 113  function FormFin($p_cn,$p_jrn,$p_periode
113            
114    }    }
115        
116    //  $r.='<TR>'.InputType("Banque","js_search","e_bank_account",$e_bank_account,$pview_only,FICHE_TYPE_FIN).'</TR>';    //  search widget
117      $W1=new widget("js_search");      $W1=new widget("js_search");
118      $W1->readonly=$pview_only;      $W1->readonly=$pview_only;
119      $W1->label="Banque";      $W1->label="Banque";
# Line 125  function FormFin($p_cn,$p_jrn,$p_periode Line 125  function FormFin($p_cn,$p_jrn,$p_periode
125    
126      $r.="</TABLE>";      $r.="</TABLE>";
127        
   //  $r.=       InputType(""       ,"span"   ,"e_bank_account_label",$e_bank_account_label,false).'</TD>';  
128      $Span=new widget ("span");      $Span=new widget ("span");
129      $Span->SetReadOnly($pview_only);      $Span->SetReadOnly($pview_only);
130      $r.="<TD>".$Span->IOValue("e_bank_account_label",$e_bank_account_label)."</TD>";      $r.="<TD>".$Span->IOValue("e_bank_account_label",$e_bank_account_label)."</TD>";
# Line 195  function FormFin($p_cn,$p_jrn,$p_periode Line 194  function FormFin($p_cn,$p_jrn,$p_periode
194      $other=new widget("span");      $other=new widget("span");
195      $r.="<TD>";      $r.="<TD>";
196      $r.=$other->IOValue("e_other$i"."_label", $tiers_label);      $r.=$other->IOValue("e_other$i"."_label", $tiers_label);
     //    $r.=InputType("","span", "e_other$i"."_label", $tiers_label,$pview_only);  
197      // Comment      // Comment
     //    $r.=InputType("","Text","e_other$i"."_comment",$tiers_comment,$pview_only);  
198      $wComment=new widget("text");      $wComment=new widget("text");
199      $wComment->table=1;      $wComment->table=1;
200      $wComment->SetReadOnly($pview_only);      $wComment->SetReadOnly($pview_only);
# Line 207  function FormFin($p_cn,$p_jrn,$p_periode Line 204  function FormFin($p_cn,$p_jrn,$p_periode
204      $wAmount->table=1;      $wAmount->table=1;
205      $wAmount->size=7;      $wAmount->size=7;
206      $wAmount->SetReadOnly($pview_only);      $wAmount->SetReadOnly($pview_only);
     //    $r.=InputType("","TEXT","e_other$i"."_amount",$tiers_amount,$pview_only);  
207      $r.=$wAmount->IOValue("e_other$i"."_amount",$tiers_amount);      $r.=$wAmount->IOValue("e_other$i"."_amount",$tiers_amount);
208        // concerned
209      ${"e_concerned".$i}=(isset(${"e_concerned".$i}))?${"e_concerned".$i}:"";      ${"e_concerned".$i}=(isset(${"e_concerned".$i}))?${"e_concerned".$i}:"";
     //    $r.=InputType("","js_concerned","e_concerned".$i,${"e_concerned".$i},$pview_only);  
210      $wConcerned=new widget("js_concerned");      $wConcerned=new widget("js_concerned");
211      $wConcerned->SetReadOnly($pview_only);      $wConcerned->SetReadOnly($pview_only);
212      $r.=$wConcerned->IOValue("e_concerned".$i,${"e_concerned".$i});      $r.=$wConcerned->IOValue("e_concerned".$i,${"e_concerned".$i});
# Line 306  function RecordFin($p_cn,$p_array,$p_use Line 302  function RecordFin($p_cn,$p_array,$p_use
302    
303      $amount+=${"e_other$i"."_amount"};      $amount+=${"e_other$i"."_amount"};
304      // Record a line for the bank      // Record a line for the bank
     //    $type=( ${"e_other$i"."_amount"} < 0 )?'d':'c';  
305    
306      // Compute the j_grpt      // Compute the j_grpt
307      $seq=NextSequence($p_cn,'s_grpt');      $seq=NextSequence($p_cn,'s_grpt');
# Line 317  function RecordFin($p_cn,$p_array,$p_use Line 312  function RecordFin($p_cn,$p_array,$p_use
312    
313    
314      // Record a line for the other account      // Record a line for the other account
     //    $type=( ${"e_other$i"."_amount"} < 0 )?'c':'d';  
315      if ( ($j_id=InsertJrnx($p_cn,'c',$p_user->id,$p_jrn,$poste,$e_date,round(${"e_other$i"."_amount"},2),$seq,$periode)) == false )      if ( ($j_id=InsertJrnx($p_cn,'c',$p_user->id,$p_jrn,$poste,$e_date,round(${"e_other$i"."_amount"},2),$seq,$periode)) == false )
316        { $Rollback($p_cn);exit("error __FILE__ __LINE__");}        { $Rollback($p_cn);exit("error __FILE__ __LINE__");}
317    

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