reworked preorderlogistics

This commit is contained in:
2025-08-13 14:20:03 +02:00
parent 4259df5061
commit 6390628b19
3 changed files with 66 additions and 7 deletions
@@ -41,6 +41,7 @@ class ADBRimoFcpController extends TTCrud {
$now = date('U');
foreach ($fcpList as $fcpIn) {
$localNetworkAreaId = $networkAreaId;
$rimoId = $fcpIn['ExternalID'] ?? $fcpIn['External ID'] ?? $fcpIn['Externe ID'] ?? null;
if ($rimoId === null) continue;
if (!is_numeric($networkAreaId)) {
@@ -49,14 +50,14 @@ class ADBRimoFcpController extends TTCrud {
]);
if ($netzgebiet) {
$networkAreaId = $netzgebiet->id;
$localNetworkAreaId = $netzgebiet->id;
} else {
continue;
}
}
$data = [
'netzgebiet_id' => $networkAreaId,
'netzgebiet_id' => $localNetworkAreaId,
'name' => $fcpIn['Name'] ?? $fcpIn['Name/ID'] ?? null,
'rimo_id' => $rimoId,
'label' => $fcpIn['User label'] ?? $fcpIn['Bezeichnung'] ?? null,