This commit is contained in:
sparkyx 2004-04-10 18:43:29 +00:00
parent 7a03618629
commit e7ce293c82
3 changed files with 12 additions and 6 deletions

View file

@ -253,12 +253,12 @@ function SetIt(p_value,p_ctl) {
// One line calculator
define ("JS_CALC_LINE","
<form name=\"calc_line\">
<form name=\"calc_line\" onSubmit=\"cal()\">
<input type=\"text\" size=\"20\" name=\"calculator\" onBlur=\"cal()\">
Answer:<span id=\"name\"></span>
<br>
<input type=\"button\" name=\"B1\" value=\"Calculate\" onClick=\"cal()\">
<!-- <input type=\"button\" name=\"B1\" value=\"Calculate\" > -->
<input type=\"reset\" name=\"B2\" value=\"Reset\"><br>

View file

@ -343,6 +343,7 @@ function FormVente($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article
$r.="</DIV>";
$r.="</FORM>";
$r.=JS_CALC_LINE;
return $r;
@ -594,7 +595,7 @@ for ($o = 0;$o < $p_number; $o++) {
if ( $p_doc == 'pdf' ) {
// prob with pdf and the pdf pluggin
// Cannot find a nice workaround for that
$r.='<FORM target="new" METHOD="POST" ACTION="print_invoice.php">';
$r.='<FORM METHOD="POST" TARGET="new" ACTION="print_invoice.php">';
// $r.='<FORM METHOD="POST">';
$r.=$data;
$r.=InputType("","HIDDEN","e_comment",$p_comment);
@ -1179,6 +1180,7 @@ function FormFin($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
if ( $view_only == true ) {
$solde=GetSolde($p_cn,GetFicheAttribut($p_cn,$e_bank_account,ATTR_DEF_ACCOUNT));
$r.=" <b> Solde = ".$solde." </b>";
$new_solde=$solde;
}
// Start the div for item to move money
@ -1235,7 +1237,7 @@ function FormFin($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
${"e_concerned".$i}=(isset(${"e_concerned".$i}))?${"e_concerned".$i}:"";
$r.=InputType("","js_concerned","e_concerned".$i,${"e_concerned".$i},$view_only);
$r.='</TR>';
if ( $view_only == true ) $solde+=$tiers_amount;
if ( $view_only == true ) $new_solde+=$tiers_amount;
}
$r.="</TABLE>";
@ -1245,7 +1247,10 @@ $r.="</FORM>";
// if view_only is true
//Put the new saldo here (old saldo - operation)
if ( $view_only==true) $r.=" <b> Nouveau Solde = ".$solde." </b>";
if ( $view_only==true) {
$r.=" <b> Ancien Solde = ".$solde." </b><br>";
$r.=" <b> Nouveau Solde = ".$new_solde." </b><br>";
}
return $r;

View file

@ -44,7 +44,7 @@ $r=pg_fetch_array($Res,0);
return $r;
}
/* function ComputeVat($p_cn, $a_good,$a_quant,$p_type);
/* function ComputeVat($p_cn,$a_fiche,$a_quant,$a_price,$ap_vat)
**************************************************
* Purpose : Compute the vat,
* the fiche.f_id are in a_fiche
@ -56,6 +56,7 @@ return $r;
* - fiche id array
* - quantity array
* - price array
* - $ap_vat Array of tva id
* gen :
* -
* return: array