diff --git a/wawi/bestellung.php b/wawi/bestellung.php index 029f6e7e4..97154d7d3 100644 --- a/wawi/bestellung.php +++ b/wawi/bestellung.php @@ -1484,6 +1484,8 @@ if($aktion == 'suche') { if(betrag!="" && mwst!="" && menge!="") { + betrag = betrag.replace(",","."); + mwst = mwst.replace(",","."); menge = parseFloat(menge); betrag = parseFloat(betrag); mwst = parseFloat(mwst); @@ -1571,6 +1573,7 @@ if($aktion == 'suche') bestellungPreis = parseFloat(bestellungPreis); restBudget = parseFloat(restBudget); differenz = parseFloat(differenz); + aktBrutto = parseFloat(aktBrutto); differenz = restBudget - bestellungPreis + aktBrutto; @@ -1582,11 +1585,12 @@ if($aktion == 'suche') '; $disabled =''; - if($status->isStatiVorhanden($bestellung->bestellung_id, 'Storno') || $status->isStatiVorhanden($bestellung->bestellung_id, 'Abgeschickt') ) + if($status->isStatiVorhanden($bestellung->bestellung_id, 'Storno') || $status->isStatiVorhanden($bestellung->bestellung_id, 'Abgeschickt') || ($bestellung->freigegeben == 't')) $disabled ='disabled'; $aktBrutto = $bestellung->getBrutto($bestellung->bestellung_id); - + if($aktBrutto =='') + $aktBrutto ="0"; echo "\n"; echo "\n"; echo "

";