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"; |
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>"; |
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); |
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}); |
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'); |
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 |
|
|