Skip to content

Commit

Permalink
Uusi lasku pilkuilla
Browse files Browse the repository at this point in the history
  • Loading branch information
satuaalto committed Mar 6, 2018
1 parent 92e77a9 commit b4b8983
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ulask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= "<font class='error'>".t("Kaksi kassa-alesummaa")."</font><br>";
$tee = 'E';
}
else {
$kapro = str_replace(",", ".", trim($kapro));
$kassaale = $summa * $kapro / 100;
$kapro = 0;
}
Expand Down

0 comments on commit b4b8983

Please sign in to comment.