From: Holger Lindemann Date: Tue, 19 Jun 2012 12:29:09 +0000 (+0200) Subject: Index abfangen X-Git-Tag: release-3.0.0beta1~317^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=45690ff2012e1bb4343d0543c2d3dcf647393d79;p=kivitendo-erp.git Index abfangen --- diff --git a/peppershop/erplib.php b/peppershop/erplib.php index 00be5c142..8b22d42eb 100644 --- a/peppershop/erplib.php +++ b/peppershop/erplib.php @@ -49,7 +49,7 @@ class erp { $sql = "SELECT warehouse_id from bin where id = ".$this->lager; $rs = $this->db->getOne($sql); if ( $rs['warehouse_id'] > 0 ) { - $this->warehouse_id = $rs['warehouse_id']; + $this->warehouse_id = $rs['warehouse_id']; $sql = "SELECT id from transfer_type WHERE direction = 'in' and description = 'stock'"; $rs = $this->db->getOne($sql); $this->transtype = $rs['id']; @@ -69,7 +69,7 @@ class erp { $rs = $this->db->getAll($sql); if ($rs) foreach ($rs as $row) { $nr = $row['bugru']; - if (!$this->TAX[$nr]) { + if ( !$this->TAX[$nr] || !array_key_exists($nr, $this->TAX) ) { $data = array(); $data['startdate'] = $row['startdate']; $data['rate'] = $row['rate'];