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