- {$decalage}
- |
- {$str_tot} {$str_code}
- |
-
-
- |
-
-
- |
-
- {$tot}
- |
-
-
- {$decalage}
- |
- |
-
-
- |
-
+ }
+
+ } else {
+ // without VAT
+ $r.=<<
+ {$decalage}
+ |
+ {$str_tot} {$str_code}
+ |
+
+
+ |
+
+
+ |
+
+ {$tot}
+ |
+ |
+
+ {$decalage}
+ |
+ |
+
+
+ |
+
{$rate} {$p_currency_rate}
- |
-
- {$tot} {$str_code}
- |
-
+
+
+ {$tot_eur} EUR
+ |
+
EOF;
}
$r.='';
@@ -1468,13 +1472,12 @@ EOF;
}
// quantity
//--
- $quant = (isset(${"e_quant$i"})) ? ${"e_quant$i"} : "1"
- ;
+ $quant = (isset(${"e_quant$i"})) ? ${"e_quant$i"} : "1";
$Quantity = new INum();
- $Quantity->prec=4;
+
$Quantity->setReadOnly(false);
$Quantity->size = 8;
- $Quantity->javascript = "onchange=\"format_number(this);clean_tva($i);compute_ledger($i);\"";
+ $Quantity->javascript = "onchange=\"format_number(this,4);clean_tva($i);compute_ledger($i);\"";
$array[$i]['quantity'] = $Quantity->input("e_quant" . $i, $quant);
}// foreach article
$f_type = _('Client');