From a0f7b1b48cb6097b6a4b109c13b0133a13130e5f Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 14 Feb 2011 09:20:12 +0000 Subject: [PATCH] added: if(mwst == '') setze 0 ein --- include/wawi_bestelldetail.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wawi_bestelldetail.class.php b/include/wawi_bestelldetail.class.php index 9c5b69d44..5b28e63df 100644 --- a/include/wawi_bestelldetail.class.php +++ b/include/wawi_bestelldetail.class.php @@ -202,6 +202,8 @@ class wawi_bestelldetail extends basis_db if(!$this->validate()) return false; + $mwst = ($this->mwst == '' ? '0':$this->mwst); + if($this->new) { // insert @@ -214,7 +216,7 @@ class wawi_bestelldetail extends basis_db $this->addslashes($this->beschreibung).', '. $this->addslashes($this->artikelnummer).', '. $this->addslashes($this->preisprove).', '. - $this->addslashes($this->mwst).', + $this->addslashes($mwst).', false, '. $this->addslashes($this->sort).', false , '. @@ -235,7 +237,7 @@ class wawi_bestelldetail extends basis_db beschreibung = '.$this->addslashes($this->beschreibung).', artikelnummer = '.$this->addslashes($this->artikelnummer).', preisprove = '.$this->addslashes($this->preisprove).', - mwst = '.$this->addslashes($this->mwst).', + mwst = '.$this->addslashes($mwst).', erhalten = '.($this->erhalten?'true':'false').', sort = '.$this->addslashes($this->sort).', text = '.($this->text?'true':'false').',