X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=lxo-import%2FaddressB.php;h=dcb5adb7f974c22cf37c90beccec14c4ac6d2150;hb=03c310de8edb970a56ba51d0969979d0fe63f1b8;hp=23fa4f69a9582a3130820e3406984a64b3403f7c;hpb=98255c8891bd9b772f73be9a72e4f456998c8b3b;p=kivitendo-erp.git diff --git a/lxo-import/addressB.php b/lxo-import/addressB.php index 23fa4f69a..dcb5adb7f 100644 --- a/lxo-import/addressB.php +++ b/lxo-import/addressB.php @@ -44,7 +44,6 @@ clearstatcache (); $test=$_POST["test"]; if (!empty($_FILES["Datei"]["name"])) { $file=$_POST["ziel"]; - echo $_FILES["Datei"]["tmp_name"]; if (!move_uploaded_file($_FILES["Datei"]["tmp_name"],$file.".csv")) { $file=false; echo "Upload von ".$_FILES["Datei"]["name"]." fehlerhaft. (".$_FILES["Datei"]["error"].")
"; @@ -118,6 +117,8 @@ if ($ok) while (!feof($f)){ } else if ($in_fld[$i]=="taxincluded"){ $data=strtolower(substr($data,0,1)); if ($data!="f" && $data!="t") $data="f"; + } else if ($in_fld[$i]=="ustid"){ + $data=strtr(" ","",$data); } /*else if ($in_fld[$i]=="matchcode") { $matchcode=$data; $i++; @@ -164,7 +165,7 @@ if ($ok) while (!feof($f)){ $sql.=$keys."taxzone_id,import)"; $sql.=$vals."0,$nun)"; $rc=$db->query($sql); - if (!$rc) echo "Fehler: ".$vals."
"; + if (!$rc) echo "Fehler: ".$sql."
"; } $j++; } else {