Skip to content

Commit b6b856f

Browse files
authored
Merge pull request #72 from exciler/sendcloud
Versandarten Bugfixes and stability improvements, some cleanup
2 parents 7a83c9f + c361a82 commit b6b856f

9 files changed

+31
-10597
lines changed

www/lib/class.erpapi.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28104,31 +28104,15 @@ function GetVersandartAuftrag($projekt = 0)
2810428104
$modul = "";
2810528105

2810628106
$tmp = array(
28107-
'DHL'=>'DHL','DPD'=>'DPD',
28108-
'express_dpd'=>'Express DPD',
28109-
'export_dpd'=>'Export DPD',
28110-
'gls'=>'GLS',
2811128107
'keinversand'=>'Kein Versand',
2811228108
'selbstabholer'=>'Selbstabholer',
28113-
'versandunternehmen'=>'Sonstige',
2811428109
'spedition'=>'Spedition',
28115-
'Go'=>'GO!',
28116-
'post'=>'Post'
2811728110
);
2811828111
foreach($tmp as $key=>$value)
2811928112
{
28120-
if($key == 'DHL'){$modul='intraship';}
28121-
if($key == 'DPD'){$modul='dpdapi';}
28122-
if($key == 'express_dpd'){$modul='';}
28123-
if($key == 'export_dpd'){$modul='';}
28124-
if($key == 'gls'){$modul='glsapi';}
2812528113
if($key == 'keinversand'){$modul='';}
2812628114
if($key == 'selbstabholer'){$modul='selbstabholer';}
28127-
if($key == 'versandunternehmen'){$modul='';}
2812828115
if($key == 'spedition'){$modul='';}
28129-
if($key == 'Go'){$modul='';}
28130-
if($key == 'post'){$modul='post';}
28131-
2813228116

2813328117
$this->app->DB->Insert("INSERT INTO versandarten (id,type,bezeichnung,aktiv,modul) VALUES ('','$key','$value','1','$modul')");
2813428118
}

www/lib/class.versanddienstleister.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ public function GetAdressdaten($id, $sid): array
153153
lp.zollwaehrung
154154
FROM lieferschein_position lp
155155
JOIN artikel a on lp.artikel = a.id
156-
LEFT JOIN auftrag_position ap on lp.auftrag_position_id = ap.id
157-
LEFT JOIN rechnung_position rp on ap.id = rp.auftrag_position_id
158-
LEFT JOIN rechnung r on rp.rechnung = r.id
156+
LEFT OUTER JOIN auftrag_position ap on lp.auftrag_position_id = ap.id
157+
LEFT OUTER JOIN rechnung_position rp on ap.id = rp.auftrag_position_id
158+
LEFT OUTER JOIN rechnung r on rp.rechnung = r.id
159159
WHERE lp.lieferschein = $lieferscheinId
160160
AND a.lagerartikel = 1
161161
AND r.status != 'storniert'
162162
ORDER BY lp.sort";
163-
$ret['positions'] = $this->app->DB->SelectArr($sql);
163+
$ret['positions'] = $this->app->DB->SelectArr($sql) ?? [];
164164

165165
if ($sid === "lieferschein") {
166166
$standardkg = $this->app->erp->VersandartMindestgewicht($lieferscheinId);

www/lib/versandarten/ShipService_v12.wsdl

Lines changed: 0 additions & 6097 deletions
This file was deleted.

0 commit comments

Comments
 (0)