From: Holger Lindemann Date: Fri, 15 Jun 2012 16:50:21 +0000 (+0200) Subject: Bestfit mitgeben X-Git-Tag: release-3.0.0beta1~317^2~6 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b83ef588cf9d372b52a42e5ce2f48497b9f2c2dd;p=kivitendo-erp.git Bestfit mitgeben Variable treuh auf treuhand geƤndert --- diff --git a/peppershop/Picture.php b/peppershop/Picture.php index 692a7ea31..55184da43 100644 --- a/peppershop/Picture.php +++ b/peppershop/Picture.php @@ -37,12 +37,12 @@ class picture { $faktor = $d["width"]/$d["height"]; } $smallheight = floor($this->smallwidth*$faktor); - $handle->thumbnailImage($this->smallwidth, $smallheight); + $handle->thumbnailImage($this->smallwidth, $smallheight, true); $rc = $handle->writeImage( "./tmp/tmp.file_small"); if ( !$this->original ) { $handle->readImage("./tmp/tmp.file_org"); $bigheight = floor($this->bigwidth * $faktor); - $handle->thumbnailImage( $this->bigwidth, $bigheight); + $handle->thumbnailImage( $this->bigwidth, $bigheight,true); return $handle->writeImage( "./tmp/tmp.file_org"); } return $rc; 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"]);