X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=peppershop%2Fpepper.php;h=094c6108e44f7adcbe34ab62fc51a2f6db57c73c;hb=28cda5b67bc9cef793911fa4e65b6aa9b81903e3;hp=25a9d79dfd416f23ef471ad3e4f6d7aed12d1251;hpb=7e28f16efbb81644815ef06396b1d5c89c8bb5ec;p=kivitendo-erp.git diff --git a/peppershop/pepper.php b/peppershop/pepper.php index 25a9d79df..094c6108e 100644 --- a/peppershop/pepper.php +++ b/peppershop/pepper.php @@ -11,7 +11,7 @@ class pepper { var $divVerm = false; var $minder = false; var $paypal = false; - var $treuh = false; + var $treuhand = false; var $nachn = false; var $shopcode = 'ISO-8859-1'; var $erpcode = 'UTF-8'; @@ -85,7 +85,7 @@ class pepper { function translateTable($data,$table) { $newdata = array(); foreach ($data as $key=>$val) { - if ($this->{$table}[$key]) + if (array_key_exists($key, $this->{$table})) $newdata[$this->{$table}[$key]] = $val; } return $newdata; @@ -257,8 +257,8 @@ class pepper { $artikel[] = array("partnumber"=>$this->paypal['NR'],"description"=>$this->paypal['TXT'],"taxrate"=>$this->paypal['TAX'], "qty"=>1,"unit"=>$this->paypal['Unit'],"sellprice"=>round($row["paypalkosten"],2)); if ($row["treuhandkosten"]>0) - $artikel[] = array("partnumber"=>$this->treuh['NR'],"description"=>$this->treuh['TXT'],"taxrate"=>$this->treuh['TAX'], - "qty"=>1,"unit"=>$this->treuh['Unit'],"sellprice"=>$row["treuhandkosten"]); + $artikel[] = array("partnumber"=>$this->treuhand['NR'],"description"=>$this->treuhand['TXT'],"taxrate"=>$this->treuhand['TAX'], + "qty"=>1,"unit"=>$this->treuhand['Unit'],"sellprice"=>$row["treuhandkosten"]); if ($row["mindermengenzuschlag"]>0) $artikel[] = array("partnumber"=>$this->minder['NR'],"description"=>$this->minder['TXT'],"taxrate"=>$this->minder['TAX'], "qty"=>1,"unit"=>$this->minder['Unit'],"sellprice"=>$row["mindermengenzuschlag"]);