X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=peppershop%2Ferplib.php;h=8b22d42eb5c9f07cb862d9e925954b42d29608b2;hb=fba4f72dc6a7177d46be67bf4689502b5d53cd19;hp=00be5c1425d556be96028f902ecb4a0403cb831b;hpb=6fdf290898b160dd60af5e00fab9f5820394947d;p=kivitendo-erp.git 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'];