Qgis Preorder sync um Felder erweitert und in ADB verlinkt

This commit is contained in:
Daniel Spitzer
2026-01-20 13:16:51 +01:00
parent 4aae3cb3e9
commit 6584985e03

View File

@@ -202,6 +202,21 @@ SQL;
continue;
}
$block = $po->adb_block ?? null;
$stiege = $po->adb_stiege ?? null;
$stock = $po->adb_stock ?? null;
$tuer = $po->adb_tuer ?? null;
if (!empty($po->adb_wohneinheit_id)) {
$wohneinheit = new ADBWohneinheit($po->adb_wohneinheit_id);
if ($wohneinheit->id) {
$block = $wohneinheit->block;
$stiege = $wohneinheit->stiege;
$stock = $wohneinheit->stock;
$tuer = $wohneinheit->tuer;
}
}
$latVal = str_replace(',', '.', $gps_lat);
$lonVal = str_replace(',', '.', $gps_long);
@@ -211,10 +226,10 @@ SQL;
':type_label' => $po->type_label,
':strasse' => $po->adb_strasse,
':hausnummer' => $po->adb_hausnummer,
':block' => $po->block,
':stiege' => $po->stiege,
':stock' => $po->stock,
':tuer' => $po->tuer,
':block' => $block,
':stiege' => $stiege,
':stock' => $stock,
':tuer' => $tuer,
':plz' => $po->adb_plz,
':ort' => $po->adb_ort,
':company' => $po->company,