diff --git a/Layout/default/Address/Form.php b/Layout/default/Address/Form.php
index 3b53f3b26..7acab0f5c 100644
--- a/Layout/default/Address/Form.php
+++ b/Layout/default/Address/Form.php
@@ -320,6 +320,12 @@
+
diff --git a/Layout/default/Address/View.php b/Layout/default/Address/View.php
index 591b4d778..2f2ff38ce 100644
--- a/Layout/default/Address/View.php
+++ b/Layout/default/Address/View.php
@@ -180,7 +180,14 @@
| RTR Code |
=(is_array($address->attributes) && array_key_exists("rtrcode", $address->attributes)) ? $address->attributes['rtrcode']->value : ""?> |
-
+
+ attributes) && array_key_exists("rtrcode", $address->attributes) && $address->attributes['rml-fibu-account']->value): ?>
+
+ | RML FIBU Konto |
+ =$address->attributes['rml-fibu-account']->value?> |
+
+
+
|
|
diff --git a/Layout/default/PreorderProduct/include/enduser-prices-setup.php b/Layout/default/PreorderProduct/include/enduser-prices-setup.php
deleted file mode 100644
index b3d9bbc7f..000000000
--- a/Layout/default/PreorderProduct/include/enduser-prices-setup.php
+++ /dev/null
@@ -1 +0,0 @@
-getProperty("adb_hausnummer");
foreach(ADBStatusflagModel::getAll() as $hflag) {
- echo $hflag->code."\n";
$hflag_value = ADBHausnummerStatusflagValueModel::search(["hausnummer_id" => $hausnummer->id, "flag_id" => $hflag->id]);
if(!$hflag_value) {
$hflag_value = ADBHausnummerStatusflagValueModel::create([
diff --git a/scripts/adb-rimo-import/ADBAddressHelper/address_helper.php b/scripts/adb-rimo-import/ADBAddressHelper/address_helper.php
index dfaa0fec4..a4baa9e17 100644
--- a/scripts/adb-rimo-import/ADBAddressHelper/address_helper.php
+++ b/scripts/adb-rimo-import/ADBAddressHelper/address_helper.php
@@ -135,8 +135,8 @@ class AddressHelper
}
- $name = trim($building->name);
- $strasse_hausnummer = trim($building->address->name);
+ $name = $this->trimExtra($building->name);
+ $strasse_hausnummer = trim($this->trimExtra($building->address->name));
$split_result = $this->splitStreetHausnummer($strasse_hausnummer);
if (!$split_result) {
@@ -148,18 +148,18 @@ class AddressHelper
$hausnummer_name = $this->db->escape($split_result[1]);
$addresszusatz = $this->db->escape($split_result[2]);
- $gem_kz = $this->db->escape(trim($building->municipality->name));
- $gem_name = $this->db->escape(trim($building->municipality->userLabel));
+ $gem_kz = $this->db->escape($this->trimExtra($building->municipality->name));
+ $gem_name = $this->db->escape($this->trimExtra($building->municipality->userLabel));
- $ort_name = $this->db->escape(trim($building->address->city));
- $plz_name = $this->db->escape(trim($building->address->zipCode));
+ $ort_name = $this->db->escape($this->trimExtra($building->address->city));
+ $plz_name = $this->db->escape($this->trimExtra($building->address->zipCode));
$lat = ($building->address->latitude) ? $this->truncateFloat($building->address->latitude, 14) : null;
$long = ($building->address->longitude) ? $this->truncateFloat($building->address->longitude, 14) : null;
//$lat = $building->address->latitude;
//$long = $building->address->longitude;
$unit_count = $building->homesCount;
- $lot_num = $building->address->lotNumber;
+ $lot_num = $this->trimExtra($building->address->lotNumber);
$fcp_name = false;
$adrcd = false;
@@ -551,4 +551,7 @@ class AddressHelper
echo $logtext . "\n";
}
+ public function trimExtra($string) {
+ return preg_replace(['/\\\r+/', '/\\\n+/', '/\\\t+/'], "", trim($string));
+ }
}
\ No newline at end of file