diff --git a/include/constant.php b/include/constant.php
index 72e5a38ec..85ca84e13 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -253,12 +253,12 @@ function SetIt(p_value,p_ctl) {
// One line calculator
define ("JS_CALC_LINE","
-
";
+ $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.='";
// if view_only is true
//Put the new saldo here (old saldo - operation)
-if ( $view_only==true) $r.=" Nouveau Solde = ".$solde." ";
+ if ( $view_only==true) {
+ $r.=" Ancien Solde = ".$solde."
";
+ $r.=" Nouveau Solde = ".$new_solde."
";
+ }
return $r;
diff --git a/include/user_common.php b/include/user_common.php
index 0816b6d06..c05ea16bb 100644
--- a/include/user_common.php
+++ b/include/user_common.php
@@ -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