cleanup old versandarten

This commit is contained in:
Andreas Palm
2023-03-23 23:23:03 +01:00
parent 696e9efc76
commit 51552e7530
7 changed files with 0 additions and 10572 deletions
-16
View File
@@ -28104,31 +28104,15 @@ function Firmendaten($field,$projekt="")
$modul = "";
$tmp = array(
'DHL'=>'DHL','DPD'=>'DPD',
'express_dpd'=>'Express DPD',
'export_dpd'=>'Export DPD',
'gls'=>'GLS',
'keinversand'=>'Kein Versand',
'selbstabholer'=>'Selbstabholer',
'versandunternehmen'=>'Sonstige',
'spedition'=>'Spedition',
'Go'=>'GO!',
'post'=>'Post'
);
foreach($tmp as $key=>$value)
{
if($key == 'DHL'){$modul='intraship';}
if($key == 'DPD'){$modul='dpdapi';}
if($key == 'express_dpd'){$modul='';}
if($key == 'export_dpd'){$modul='';}
if($key == 'gls'){$modul='glsapi';}
if($key == 'keinversand'){$modul='';}
if($key == 'selbstabholer'){$modul='selbstabholer';}
if($key == 'versandunternehmen'){$modul='';}
if($key == 'spedition'){$modul='';}
if($key == 'Go'){$modul='';}
if($key == 'post'){$modul='post';}
$this->app->DB->Insert("INSERT INTO versandarten (id,type,bezeichnung,aktiv,modul) VALUES ('','$key','$value','1','$modul')");
}