X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=lxo-import%2FcontactB.php;h=5dd8891e55b525cc3e713b6fca64983bf210b398;hb=1e0d413084100ccd892e8c5be95703be5d965de7;hp=4a157c4f93dfa0e9bff89e1a76e64034e76519c7;hpb=29c981ee335ebc5c21722a265360665e3af2bb20;p=kivitendo-erp.git diff --git a/lxo-import/contactB.php b/lxo-import/contactB.php index 4a157c4f9..5dd8891e5 100644 --- a/lxo-import/contactB.php +++ b/lxo-import/contactB.php @@ -127,6 +127,7 @@ $first=true; foreach ($zeile as $fld) { $fld = strtolower(trim(strtr($fld,array("\""=>"","'"=>"")))); $in_fld[]=$fld; + if (substr($fld,0,2) == "x_") $kunde_fld[] = $fld; } $j=0; $zeile=fgetcsv($f,2000,$trenner); @@ -138,6 +139,8 @@ while (!feof($f)){ $sql="insert into contacts "; $keys="("; $vals=" values ("; + unset($extra); + $extra = array(); foreach($zeile as $data) { $i++; if (!in_array($in_fld[$i],$kunde_fld)) { @@ -163,6 +166,12 @@ while (!feof($f)){ } else if($in_fld[$i]=="cp_cv_id") { continue; } + if (substr($in_fld[$i],0,2)=="x_" && $data) { + $extra[substr($in_fld[$i],2)] = $data; + continue; + } else if ((substr($in_fld[$i],0,2)=="x_")) { + continue; + }; if ($in_fld[$i]==$file."number" && $data) { if (!$id) { $tmp=getFirma($data,$file); @@ -223,10 +232,20 @@ while (!feof($f)){ echo "
Kontakt-Adressimport für die ERP