';
if ( $view_only == true ) $solde+=$tiers_amount;
}
@@ -1209,7 +1243,14 @@ function FormODS($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
// Start the div for item to encode
$r.="
";
$r.='
Opérations Diverses
';
- $r.='
';
+ $r.='
';
+ $r.="
";
+ $r.="
";
+ $r.="
Code
";
+ $r.="
Poste
";
+ $r.="
Montant
";
+ $r.="
Crédit ou débit
";
+ $r.="
";
$sum_deb=0.0;
$sum_cred=0.0;
@@ -1218,7 +1259,7 @@ function FormODS($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
$account=(isset(${"e_account$i"}))?${"e_account$i"}:"";
-
+ $lib="";
// If $account has a value
if ( isNumber($account) == 1 ) {
if ( CountSql($p_cn,"select * from tmp_pcmn where pcm_val=$account") == 0 ) {
@@ -1228,7 +1269,7 @@ function FormODS($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
$account="";
} else {
// retrieve the tva label and name
- $a_fiche=GetPosteLibelle($p_cn, $account,1);
+ $lib=GetPosteLibelle($p_cn, $account,1);
}
}
${"e_account$i"."_amount"}=(isset(${"e_account$i"."_amount"}))?${"e_account$i"."_amount"}:0;
@@ -1241,8 +1282,12 @@ function FormODS($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
}
${"e_account$i"."_amount"}=0;
}
+ // code
$r.='