diff --git a/ulask.php b/ulask.php
index 5099718564..de28452f0e 100644
--- a/ulask.php
+++ b/ulask.php
@@ -576,12 +576,16 @@ function hae_skannattu_lasku($kasittele_seuraava = "") {
}
}
+ if ($kassaale != 0) {
+ $kassaale = str_replace(",", ".", trim($kassaale));
+ }
if ($kapro != 0) {
if ($kassaale > 0) {
$errormsg .= "".t("Kaksi kassa-alesummaa")."
";
$tee = 'E';
}
else {
+ $kapro = str_replace(",", ".", trim($kapro));
$kassaale = $summa * $kapro / 100;
$kapro = 0;
}