diff --git a/include/wawi_bestelldetail.class.php b/include/wawi_bestelldetail.class.php index c263b72ca..089194648 100644 --- a/include/wawi_bestelldetail.class.php +++ b/include/wawi_bestelldetail.class.php @@ -198,6 +198,11 @@ class wawi_bestelldetail extends basis_db $this->errormsg="Ungültige MWSt. eingegeben."; return false; } + if($this->menge!='' && !fmod($this->menge,1)==0) + { + $this->errormsg = 'Menge muss eine ganze Zahl sein'; + return false; + } return true; } diff --git a/wawi/bestellung.php b/wawi/bestellung.php index 9e8300324..be61d092b 100644 --- a/wawi/bestellung.php +++ b/wawi/bestellung.php @@ -2184,7 +2184,12 @@ if($_GET['method']=='update') var brutto = $("#brutto_"+i).val(); brutto = brutto.replace(",","."); var sort = $("#sort_"+i).val(); - + + if(menge!="" && !(menge%1==0)) + { + alert("Menge muss eine ganze Zahl sein"); + return false; + } var detailid= $("#bestelldetailid_"+i).val(); if(detailid != "") {