WIP Address & rimo import
This commit is contained in:
@@ -95,21 +95,13 @@
|
|||||||
<input type="text" class="form-control" name="filter[fibu_account_number]" id="filter_fibu_account_number" value="<?=array_key_exists('fibu_account_number', $filter) ? $filter['fibu_account_number'] : ""?>" />
|
<input type="text" class="form-control" name="filter[fibu_account_number]" id="filter_fibu_account_number" value="<?=array_key_exists('fibu_account_number', $filter) ? $filter['fibu_account_number'] : ""?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-2">
|
<div class="col-4">
|
||||||
<label class="form-label" for="filter_company">Firma</label>
|
<label class="form-label" for="filter_kunde">Kunde</label>
|
||||||
<input type="text" class="form-control" name="filter[company]" id="filter_company" value="<?=array_key_exists('company', $filter) ? $filter['company'] : ""?>" />
|
<input type="text" class="form-control" name="filter[kunde]" id="filter_kunde" value="<?=array_key_exists('kunde', $filter) ? $filter['kunde'] : ""?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-1">
|
|
||||||
<label class="form-label" for="filter_firstname">Vorname</label>
|
|
||||||
<input type="text" class="form-control" name="filter[firstname]" id="filter_firstname" value="<?=array_key_exists('firstname', $filter) ? $filter['firstname'] : ""?>" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-1">
|
|
||||||
<label class="form-label" for="filter_lastname">Nachname</label>
|
|
||||||
<input type="text" class="form-control" name="filter[lastname]" id="filter_lastname" value="<?=array_key_exists('lastname', $filter) ? $filter['lastname'] : ""?>" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row mt-2">
|
<div class="row mt-2">
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
<label class="form-label" for="filter_street">Straße</label>
|
<label class="form-label" for="filter_street">Straße</label>
|
||||||
|
|||||||
@@ -77,12 +77,20 @@ class AddressController extends mfBaseController {
|
|||||||
$new_filter = [];
|
$new_filter = [];
|
||||||
|
|
||||||
if(is_array($filter) && count($filter)) {
|
if(is_array($filter) && count($filter)) {
|
||||||
|
|
||||||
|
$new_filter['add-where'] = "";
|
||||||
|
|
||||||
|
if(array_key_exists("kunde", $filter) && $filter["kunde"]) {
|
||||||
|
$kunde = $this->db()->escape($filter['kunde']);
|
||||||
|
$new_filter['add-where'] .= " AND (company like '%$kunde%' OR firstname like '%$kunde%' OR lastname like '%$kunde%' OR concat(firstname, ' ', lastname) like '%$kunde%' OR concat(lastname, ' ', firstname) like '%$kunde%')";
|
||||||
|
}
|
||||||
|
|
||||||
if(!array_key_exists("parents_only", $filter)) {
|
if(!array_key_exists("parents_only", $filter)) {
|
||||||
$new_filter["parents_only"] = 1;
|
$new_filter["parents_only"] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(array_key_exists("fibu_account_number", $filter) && $filter['fibu_account_number']) {
|
if(array_key_exists("fibu_account_number", $filter) && $filter['fibu_account_number']) {
|
||||||
$new_filter['fibu_account_number'] = $filter['fibu_account_number']."%";
|
$new_filter['fibu_or_supplier_account_number'] = $filter['fibu_account_number']."%";
|
||||||
unset($filter['fibu_account_number']);
|
unset($filter['fibu_account_number']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -263,6 +263,13 @@ class AddressModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(array_key_exists("fibu_or_supplier_account_number", $filter)) {
|
||||||
|
$fsn = $filter["fibu_or_supplier_account_number"];
|
||||||
|
if($fsn) {
|
||||||
|
$where .= " AND (fibu_account_number LIKE '$fsn' OR fibu_supplier_number LIKE '$fsn')";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(array_key_exists("fibu_primary_account", $filter)) {
|
if(array_key_exists("fibu_primary_account", $filter)) {
|
||||||
$fpa = $filter["fibu_primary_account"];
|
$fpa = $filter["fibu_primary_account"];
|
||||||
if($fpa) {
|
if($fpa) {
|
||||||
@@ -431,6 +438,11 @@ class AddressModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// custom where clause
|
||||||
|
if(array_key_exists("add-where", $filter)) {
|
||||||
|
$where .= " ".$filter['add-where'];
|
||||||
|
}
|
||||||
|
|
||||||
//var_dump($filter, $where);exit;
|
//var_dump($filter, $where);exit;
|
||||||
return $where;
|
return $where;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ class ContractModel {
|
|||||||
return $contract;
|
return $contract;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function savePrecontract($contract) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public static function getAll() {
|
public static function getAll() {
|
||||||
$items = [];
|
$items = [];
|
||||||
|
|
||||||
|
|||||||
8
application/Contractqueue/Contractqueue.php
Normal file
8
application/Contractqueue/Contractqueue.php
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
|
||||||
@@ -196,8 +196,8 @@ class AddressHelper {
|
|||||||
$hausnummer->netzgebiet_id = $this->netzgebiet->id;
|
$hausnummer->netzgebiet_id = $this->netzgebiet->id;
|
||||||
//$hausnummer->save();
|
//$hausnummer->save();
|
||||||
}
|
}
|
||||||
if($hausnummer->extref != $this->netzgebiet->extref) {
|
if($hausnummer->extref != $name) {
|
||||||
$hausnummer->extref = $this->netzgebiet->extref;
|
$hausnummer->extref = $name;
|
||||||
//$hausnummer->save();
|
//$hausnummer->save();
|
||||||
}
|
}
|
||||||
if($lat && $long) {
|
if($lat && $long) {
|
||||||
|
|||||||
@@ -138,10 +138,123 @@ foreach($clustersResponse->item as $cluster) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($building->homes->item as $home) {
|
$rimo_home_count = count($building->homes->item);
|
||||||
|
|
||||||
print_r($home);exit;
|
$last_unit_num = 0;
|
||||||
|
$existing_units = [];
|
||||||
|
foreach(\ADBWohneinheitModel::search(["hausnummer_id" => $hausnummer->id]) as $unit) {
|
||||||
|
$existing_units[$unit->extref] = $unit;
|
||||||
|
if($last_unit_num < $unit->num) {
|
||||||
|
$last_unit_num++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($building->homes->item as $home) {
|
||||||
|
print_r($home);//exit;
|
||||||
|
$home_rimo_id = $home->id;
|
||||||
|
$home_name = $home->name;
|
||||||
|
|
||||||
|
if(array_key_exists($home_rimo_id, $existing_units)) {
|
||||||
|
$unit = $existing_units[$home_rimo_id];
|
||||||
|
} else {
|
||||||
|
// find free home without rimo_id
|
||||||
|
$unit = \ADBWohneinheitModel::getFirst(["hausnummer_id" => $hausnummer->id, "extref" => null]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$unit) {
|
||||||
|
// create unit
|
||||||
|
$unit = \ADBWohneinheitModel::create([
|
||||||
|
"hausnummer_id" => $hausnummer->id,
|
||||||
|
"extref" => $home_rimo_id,
|
||||||
|
"num" => ++$last_unit_num
|
||||||
|
]);
|
||||||
|
if(!$unit->save()) {
|
||||||
|
die("Error saving new unit\n".print_r($home, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* TODO: Status based on execution-/operational-state
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* update FTU data
|
||||||
|
*/
|
||||||
|
$unit_extdata = new \StdClass();
|
||||||
|
if($unit->external_data) {
|
||||||
|
$extdata = json_decode($unit->external_data);
|
||||||
|
|
||||||
|
if(is_object($extdata)) {
|
||||||
|
$unit_extdata = $extdata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(is_array($home->ftus->item) && $home->ftus->item[0]) {
|
||||||
|
echo "in ftu update\n";
|
||||||
|
$ftu_data = new \StdClass();
|
||||||
|
$ftu_data->id = $home->ftus->item[0]->id;
|
||||||
|
$ftu_data->name = $home->ftus->item[0]->name;
|
||||||
|
|
||||||
|
if(!isset($unit_extdata->rimo)) {
|
||||||
|
$unit_extdata->rimo = new \StdClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
$unit_extdata->rimo->ftu = $ftu_data;
|
||||||
|
$unit->external_data = json_encode($unit_extdata);
|
||||||
|
if(!$unit->save()) {
|
||||||
|
die("Error saving unit extdata\n".print_f($unit));
|
||||||
|
}
|
||||||
|
|
||||||
|
// check OAID
|
||||||
|
if($home->ftus->item[0]->oaidObject->name) {
|
||||||
|
if($home->ftus->item[0]->oaidObject->name != $unit->oaid) {
|
||||||
|
if(!$unit->oaid) {
|
||||||
|
// assign oad to home
|
||||||
|
$rimo_oaid = $home->ftus->item[0]->oaidObject->name;
|
||||||
|
$oaid = \OpenAccessIdModel::getFirst(["oaid" => $rimo_oaid]);
|
||||||
|
if(!$oaid) {
|
||||||
|
echo "Home hat fremde OAID: $rimo_oaid (Home ".$unit->id."\n";
|
||||||
|
} else {
|
||||||
|
$unit->oaid = $rimo_oaid;
|
||||||
|
|
||||||
|
$oaid->assigned = date("U");
|
||||||
|
$oaid->adb_wohneinheit_id = $unit->id;
|
||||||
|
$oaid->termination_id = null;
|
||||||
|
$oaid->address = $unit->hausnummer->getAddress();
|
||||||
|
$oaid->unit_string = (string)$unit;
|
||||||
|
if(!$oaid->exported) {
|
||||||
|
$oaid->exported = date("U");
|
||||||
|
}
|
||||||
|
|
||||||
|
if($oaid->export_data) {
|
||||||
|
$exp_data = json_decode($oaid->export_data);
|
||||||
|
} else {
|
||||||
|
$exp_data = new \stdClass();
|
||||||
|
}
|
||||||
|
if(!property_exists($exp_data, "rimo")) {
|
||||||
|
$exp_data->rimo = new \StdClass();
|
||||||
|
}
|
||||||
|
$exp_data->rimo->oaid_id = $home->ftus->item[0]->oaidObject->id;
|
||||||
|
$exp_data->rimo->name = $rimo_oaid;
|
||||||
|
$exp_data->rimo->ftu_id = $ftu_data->id;
|
||||||
|
$exp_data->rimo->ftu_name = $ftu_data->name;
|
||||||
|
$exp_data->rimo->ftu_assigned_date = date("U");
|
||||||
|
|
||||||
|
$oaid->export_data = json_encode($exp_data);
|
||||||
|
$oaid->save();
|
||||||
|
|
||||||
|
$unit->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//exit;
|
//exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
356
scripts/adb-rimo-import/sample-home.txt
Normal file
356
scripts/adb-rimo-import/sample-home.txt
Normal file
@@ -0,0 +1,356 @@
|
|||||||
|
https://rimo-saas.com/CRM2RIMO/prod/getBuildings?apiKey=323D33323DC0F8D96BB3C403324D1B7B2F7294FEF981ACF2059BE2B3ACB80EA389D079918FFBAD831861C1850F4046AB&clusterId=SDISalesCluster_126657212929_1678961358
|
||||||
|
===================================
|
||||||
|
strasse: Bierbaum | hausnummer: 62 | zusatz: | gemkz: 60670 | gem_name: Premstätten | ort_name: Bierbaum | plz_name: 8141
|
||||||
|
found hausnummer from rimo_id SDIBuilding_689339860481_1617191662
|
||||||
|
stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDIHome_63149132801_1664900169
|
||||||
|
[name] => 25011048.01
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[executionState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 3
|
||||||
|
[userLabel] => Plan released
|
||||||
|
)
|
||||||
|
|
||||||
|
[operationalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 10
|
||||||
|
[userLabel] => Planned
|
||||||
|
)
|
||||||
|
|
||||||
|
[subAddress] =>
|
||||||
|
[ftus] => stdClass Object
|
||||||
|
(
|
||||||
|
[item] => Array
|
||||||
|
(
|
||||||
|
[0] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMMaterial_63149135105_0
|
||||||
|
[name] => G241.01
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[oaidObject] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDIOAIDObject_277465606401_1698935360
|
||||||
|
[name] => KWD7M4L0
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] => 1698935360
|
||||||
|
[className] => SDIOAIDObject
|
||||||
|
[terminiationUnit] =>
|
||||||
|
[linkObjects] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] =>
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[item] => Array
|
||||||
|
(
|
||||||
|
[0] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => KWD7M4L0.001
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[terminiationUnit] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMPort_63149135617_1698935360
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[linkObjects] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
[portZ] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[functionalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] => Good
|
||||||
|
)
|
||||||
|
|
||||||
|
[masterItem] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => SC/APC
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[fixEndDN] => root{SDMRoot}:Locations{SDILocationRoot}:Austria{SDICountry}:ST{SDIState}:GU{SDIPoliticalDistrict}:60670{SDIMunicipality}:63206{SDICadastralMunicipality}:1168927{SDIBuilding}:25011048.01{SDIHome}:G241.01{TerminationDevice}:1{Port}
|
||||||
|
[home] =>
|
||||||
|
[parent] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[services] => stdClass Object
|
||||||
|
(
|
||||||
|
[item] => Array
|
||||||
|
(
|
||||||
|
[0] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDIService_63157655297_1664900174
|
||||||
|
[name] => 108SL1
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] => 1664900174
|
||||||
|
[className] => SDIService
|
||||||
|
[operationalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 10
|
||||||
|
[userLabel] => Planned
|
||||||
|
)
|
||||||
|
|
||||||
|
[masterItem] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMServiceMasterItem_1025929847553_0
|
||||||
|
[name] => FTTx Service (red)
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] => 1664892065
|
||||||
|
[className] => SDMServiceMasterItem
|
||||||
|
)
|
||||||
|
|
||||||
|
[active] =>
|
||||||
|
[state] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] => undefined
|
||||||
|
)
|
||||||
|
|
||||||
|
[customerId] =>
|
||||||
|
[customerState] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
[1] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => KWD7M4L0.002
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[terminiationUnit] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMPort_63149136641_1698935360
|
||||||
|
[name] => 2
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[linkObjects] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
[portZ] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => 2
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[functionalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] => Good
|
||||||
|
)
|
||||||
|
|
||||||
|
[masterItem] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => SC/APC
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[fixEndDN] => root{SDMRoot}:Locations{SDILocationRoot}:Austria{SDICountry}:ST{SDIState}:GU{SDIPoliticalDistrict}:60670{SDIMunicipality}:63206{SDICadastralMunicipality}:1168927{SDIBuilding}:25011048.01{SDIHome}:G241.01{TerminationDevice}:2{Port}
|
||||||
|
[home] =>
|
||||||
|
[parent] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[services] => stdClass Object
|
||||||
|
(
|
||||||
|
[item] => Array
|
||||||
|
(
|
||||||
|
[0] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDIService_63157653249_1664900174
|
||||||
|
[name] => 108SL2
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] => 1664900174
|
||||||
|
[className] => SDIService
|
||||||
|
[operationalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 10
|
||||||
|
[userLabel] => Planned
|
||||||
|
)
|
||||||
|
|
||||||
|
[masterItem] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMServiceMasterItem_1025929848833_0
|
||||||
|
[name] => FTTx Service (blue)
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] => 1664892070
|
||||||
|
[className] => SDMServiceMasterItem
|
||||||
|
)
|
||||||
|
|
||||||
|
[active] =>
|
||||||
|
[state] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] => undefined
|
||||||
|
)
|
||||||
|
|
||||||
|
[customerId] =>
|
||||||
|
[customerState] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
[2] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => KWD7M4L0.003
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[terminiationUnit] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMPort_63149136897_1698935360
|
||||||
|
[name] => 3
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[linkObjects] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
[portZ] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => 3
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[functionalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] => Good
|
||||||
|
)
|
||||||
|
|
||||||
|
[masterItem] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => SC/APC
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[fixEndDN] => root{SDMRoot}:Locations{SDILocationRoot}:Austria{SDICountry}:ST{SDIState}:GU{SDIPoliticalDistrict}:60670{SDIMunicipality}:63206{SDICadastralMunicipality}:1168927{SDIBuilding}:25011048.01{SDIHome}:G241.01{TerminationDevice}:3{Port}
|
||||||
|
[home] =>
|
||||||
|
[parent] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[services] => stdClass Object
|
||||||
|
(
|
||||||
|
[item] => Array
|
||||||
|
(
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
[3] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => KWD7M4L0.004
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[terminiationUnit] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] => SDMPort_63149157889_1698935360
|
||||||
|
[name] => 4
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[linkObjects] =>
|
||||||
|
[oaidObject] =>
|
||||||
|
[portZ] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => 4
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
[functionalState] => stdClass Object
|
||||||
|
(
|
||||||
|
[name] => 1
|
||||||
|
[userLabel] => Good
|
||||||
|
)
|
||||||
|
|
||||||
|
[masterItem] => stdClass Object
|
||||||
|
(
|
||||||
|
[id] =>
|
||||||
|
[name] => SC/APC
|
||||||
|
[userLabel] =>
|
||||||
|
[lastHistoryEntry] =>
|
||||||
|
[className] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[fixEndDN] => root{SDMRoot}:Locations{SDILocationRoot}:Austria{SDICountry}:ST{SDIState}:GU{SDIPoliticalDistrict}:60670{SDIMunicipality}:63206{SDICadastralMunicipality}:1168927{SDIBuilding}:25011048.01{SDIHome}:G241.01{TerminationDevice}:4{Port}
|
||||||
|
[home] =>
|
||||||
|
[parent] =>
|
||||||
|
)
|
||||||
|
|
||||||
|
[services] => stdClass Object
|
||||||
|
(
|
||||||
|
[item] => Array
|
||||||
|
(
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
36
scripts/copmare-bankdata-with-ivt.php
Normal file
36
scripts/copmare-bankdata-with-ivt.php
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
//require 'vendor/autoload.php';
|
||||||
|
require("../config/config.php");
|
||||||
|
|
||||||
|
define('FRONKDB_SQLDEBUG',false);
|
||||||
|
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
|
||||||
|
|
||||||
|
require_once(LIBDIR."/mvcfronk/mfRouter/mfRouter.php");
|
||||||
|
require_once(LIBDIR."/mvcfronk/mfBase/mfBaseModel.php");
|
||||||
|
require_once(LIBDIR."/mvcfronk/mfBase/mfBaseController.php");
|
||||||
|
|
||||||
|
$me = new User(1);
|
||||||
|
|
||||||
|
echo "thetool custnum;thetool name;ivt custnum;ivt name;thetool iban;thetool bic;ivt iban;ivt bic\n";
|
||||||
|
|
||||||
|
foreach(AddressModel::search(["customer_number" => true]) as $address) {
|
||||||
|
$icust = new IvtCustomer($address->customer_number);
|
||||||
|
if(!$icust->id) continue;
|
||||||
|
if(!$icust->IBAN && !$icust->BIC) continue;
|
||||||
|
|
||||||
|
$bank_iban = strtoupper(trim($address->bank_account_iban));
|
||||||
|
$bank_bic = strtoupper(trim($address->bank_account_bic));
|
||||||
|
|
||||||
|
$ivt_iban = strtoupper(trim($icust->IBAN));
|
||||||
|
$ivt_bic = strtoupper(trim($icust->BIC));
|
||||||
|
|
||||||
|
if($ivt_iban != $bank_iban || $ivt_bic != $bank_bic) {
|
||||||
|
echo $address->customer_number.";".$address->getCompanyOrName().";".$icust->id.";".($icust->company ? $icust->company : $icust->firstname." ".$icust->surname).";$bank_iban;$bank_bic;$ivt_iban;$ivt_bic\n";
|
||||||
|
$address->bank_account_iban = $ivt_iban;
|
||||||
|
$address->bank_account_bic = $ivt_bic;
|
||||||
|
//$address->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
99
scripts/ivt-bank-diff.csv
Normal file
99
scripts/ivt-bank-diff.csv
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
thetool custnum;thetool name;ivt custnum;ivt name;thetool iban;thetool bic;ivt iban;ivt bic
|
||||||
|
102334;Nicole Barth;102334;Nicole Barth;AT242081500043184589;STSPAT2GXXX;AT242081500043184589;STSPAT2G
|
||||||
|
103264;Manfred Breschan;103264;Manfred Breschan;AT643637800000211490;RZTAT22378;AT643637800000211490;RZTIAT22378
|
||||||
|
103601;Robert Cucek;103601;Robert Cucek;AT062081511001100798;STSPA2GXXX;AT062081511001100798;STSPAT2GXXX
|
||||||
|
102841;Kerstin Derler;102841;Kerstin Derler;;;AT253818700005053632;RZSTAT2G187
|
||||||
|
104155;Gerhard Eibisberger;104155;Gerhard Eibisberger;;;AT764477052266670002;VBOEATWWGRA
|
||||||
|
103695;Christa Eisenberger-Strobl;103695;Christa Eisenberger-Strobl;;;AT503818700000051862;RZSTAT2G187
|
||||||
|
2866;Gerit Engel;2866;Erwin Engel;AT723812800003008224;RZSTAT2G128;AT693812800003000809;RZSTAT2G128
|
||||||
|
104602;Oliver Erat;104602;Oliver Erat;AT353842000000050773;RZSTAT2G40;AT353842000000050773;RZSTAT2G420
|
||||||
|
102089;Tanja Gauster;102089;Tanja Gauster;AT652081500001081389;STSPATG2GXXX;AT652081500001081389;STSPAT2GXXX
|
||||||
|
102132;Johann Grahsl;102132;Johann Grahsl;AT982081507001017701;STSPAT2GXXX;AT982081507001017701;STSPAT2G
|
||||||
|
102896;Gerhard Gschaar;102896;Cafeteria G.G.;;;AT793812800003010717;RZSTAT2G128
|
||||||
|
103380;Martin Hasenhütl;103380;Dietmar Hasenhütl;AT463818700000105478;RZSTAT2G187;AT343818700000008888;RZSTAT2G187
|
||||||
|
103344;Edgar Hauer;103344;Edgar Hauer;AT853200000002121689;RLNWATWWW;AT853200000002121689;RLNWATWW
|
||||||
|
103094;Konrad Hirtl;103094;Konrad Hirtl;AT114477040228440000;VB0EATWWGRA;AT114477040228440000;VBOEATWWGRA
|
||||||
|
103228;Johann Höfler;103228;Johann Höfler;;;AT342081518700522727;STSPAT2GXXX
|
||||||
|
104527;Wolfgang Hutter;104527;HuWoTECH GmbH;;;AT673848700000412254;RZSTAT2G487
|
||||||
|
102767;Harald Janisch;102767;Harald Janisch;AT232081500042651398;SSPAT2GXXX;AT232081500042651398;STSPAT2GXXX
|
||||||
|
4883;Martin Käfer;4883;Martin Käfer;;;AT893807100005009410;RZSTAT2G071
|
||||||
|
104194;David Kienreich;104194;David Kienreich;;;AT466000000081335763;BAWAATWW
|
||||||
|
104001;Stefan Kindl;104001;Stefan Kindl;AT525100090721768200;EHBBAT2E;AT525100090721768200;EHBBAT2EXXX
|
||||||
|
4712;Patrick Koller;4712;Patrick Koller;AT442081500043446517;STSPAT2GXXX;AT112081500043429166;STSPAT2GXXX
|
||||||
|
2664;Ute Krachler;2664;Ute Krachler;AT922081500044029593;STSPAT2GXX;AT922081500044029593;STSPAT2GXXX
|
||||||
|
102878;Manuel Krammer;102878;Manuel Krammer;;;AT583812800103029444;RZSTAT2G128
|
||||||
|
102152;Jürgen Kriendlhofer;102152;Jürgen Kriendlhofer;AT512081512501180447;STSPAT2GXXX;AT512081512501180447;STSPAT2G
|
||||||
|
4903;Daniel Krobath;4903;Daniel Krobath;;;AT083807100005025515;RZSTAT2G071
|
||||||
|
102202;Christoph Kronabeter;102202;Christoph Kronabeter;AT673805600003104122;RZSTAT2G056;AT273805600003112505;RZSTAT2G056
|
||||||
|
1942;ingeborg Lessiak;1942;Ingeborg Lessiak;AT502081527501397817;STSPAT2G;AT502081527501397817;STSPAT2GXXX
|
||||||
|
2508;Claudia Levi;2508;Claudia Levi;;;AT803828200003048923;RZSTAT2G282
|
||||||
|
102295;Eva-Maria Lindermaier;102295;Eva-Maria Lindermaier;AT323805600005041454;RZSTAT2GO056;AT323805600005041454;RZSTAT2G056
|
||||||
|
103784;Siegfried Lipp;103784;Elke Lipp;;;AT112081500044840031;STSPAT2GXXX
|
||||||
|
103089;Mario Löffler;103089;MCStec;;;AT963817000001019470;RZSTAT2G170
|
||||||
|
102833;Andreas Maurer;102833;Andreas Maurer;;;AT491400000115102974;BAWAATWW
|
||||||
|
102437;Matthias Mayer;102437;Stadthotel zur goldenen Krone Betriebs KG;AT943828200000108407;RZSTAT2G282;AT534477016120190000;VBOEATWWGRA
|
||||||
|
103247;Reinhard Mayer;103247;Reinhard Mayer;;;AT513810300006129605;RZSTAT2G103
|
||||||
|
104245;Gerhard Mußbacher;104245;Gerhard Mußbacher;AT103817000000019687;RZTAT2G170;AT103817000000019687;RZSTAT2G170
|
||||||
|
3651;Markus Neuhold;3651;Silvia Neuhold;AT322081500043632876;STSPAT2GXXX;AT712081500044710135;STSPAT2GXXX
|
||||||
|
103834;Sonja Neuhold;103834;Maria Christine Höher;;;AT901100012820731300;BKAUATWWXXX
|
||||||
|
104058;Werner Neuhold;104058;Werner Neuhold;AT583807500003001369;RZSTATT2G075;AT583807500003001369;RZSTAT2G075
|
||||||
|
103486;Sven Pechstädt;103486;Sven Pechstädt;;;AT572081500043163625;STSPAT2GXXX
|
||||||
|
4880;Bernhard Pfeifer;4880;Bernhard Pfeifer;;;AT223812800003031531;RZSTAT2G128
|
||||||
|
102916;Mag. Petra Plank;102916;Mag. Petra Plank;AT322081500044179083;STSPAT2GXXX;AT142081500045124963;STSPAT2GXXX
|
||||||
|
103530;Manfred Ploder;103530;Manfred Ploder;AT652033000001066257;SPPBAT21034;AT652033000001066257;SPPBAT21
|
||||||
|
102970;Alfred Pölzl;102970;Alfred Pölzl;AT5543000100000005542;VBOEATWW;AT554300010000005542;VBOEATWW
|
||||||
|
103537;Franz Quehenberger;103537;Franz Quehenberger;;;AT452081507101010911;STSPAT2GXXX
|
||||||
|
103207;Patrick Ratheiser;103207;Patrick Ratheiser;AT7302070604400606903;KSPKAT2KXXX;AT732070604400606903;KSPKAT2KXXX
|
||||||
|
102656;Angela Rauch;102656;Angela Rauch;AT193837400000018408;RZSTAT2G374;AT552081500044742336;STSPAT2GXXX
|
||||||
|
103238;Franz Rauch;103238;FA. Delimax GmbH;;;AT233820600000057976;RZSTAT2G206
|
||||||
|
104471;David Rechberger;104471;CC Angling Gmbh;;;AT652081500004569703;STSPAT2GXXX
|
||||||
|
102770;Dr. Wolfgang Regenfelder;102770;Öffentlicher Notar Dr. Alexander Starkel & Partner;;;AT213818700000047340;RZSTAT2G187
|
||||||
|
103255;Manuela Reiterer ;103255;Manuela Reiterer ;AT332081506701935667;STSPATXXX;AT332081506701935667;STSPAT2GXXX
|
||||||
|
3840;Doris Rosenauer;3840;Doris Rosenauer;AT152081500044430619;STSPAT2GXXX;AT152081500044430619;STSPAT2G
|
||||||
|
103235;Florian Sabathi;103235;SLC - Software, LAN und Computersysteme GmbH ;;;AT932081502400501694;STSPAT2GXXX
|
||||||
|
4911;Isabella Scheer;4911;Isabella Scheer;;;AT372081500041811514;STSPAT2GXXX
|
||||||
|
104017;Christoph Schiefer;104017;Christoph Schiefer;;;AT422081500043865690;STSPAT2GXXX
|
||||||
|
103873;Karin Schneidhofer;103873;Karin Schneidhofer;;;AT406000000074764994;BAWAATWWXXX
|
||||||
|
103497;Christoph Schneller;103497;Christoph Schneller;;;AT623825200001047026;RZSTAT2G252
|
||||||
|
104573;Michael Schwarhofer;104573;Michael Schwarhofer;;;AT203802300005013123;RZSTAT2G023
|
||||||
|
104270;Otmar Spirk;104270;Otmar Spirk;;;AT223849700000333765;RZSTAT2G497
|
||||||
|
2365;Brigitte Stiger;2365;Brigitte Stiger;AT733828200003053899;RKSTAT2G282;AT733828200003053899;RZSTAT2G282
|
||||||
|
4906;Daniel Stoica;4906;Daniel Stoica;;;AT192011184464667900;GIBAATWW
|
||||||
|
102402;Maria Tieber;102402;Maria Tieber;AT364477000130119091;VB0EATWWGRA;AT364477000130119091;VBOEATWWGRA
|
||||||
|
104340;Mag. Johannes Weiß;104340;Mag. Johannes Weiß;AT252081502401552555;STSPAT2XXX;AT252081502401552555;STSPAT2GXXX
|
||||||
|
103559;Waltraud Windisch;103559;Waltraud Windisch;;;AT274666000000029214;VBOEATWWXXX
|
||||||
|
103861;Katja Winter;103861;Katja Winter;;;AT812081512501270990;STSPAT2GXXX
|
||||||
|
102640;Kevin Sascha Wischollek;102640;Kevin Sascha Wischollek;;;AT032081500043402247;STSPAT2GXXX
|
||||||
|
103528;Daniel Zink;103528;Daniel Zink;AT123807500005529920;RZSTAT2G07;AT123807500005529920;RZSTAT2G075
|
||||||
|
104209;ASB Kickmeier e.U.;104209;ASB Kickmeier e.U.;;;AT733849700000114694;RZSTAT2G497
|
||||||
|
102730;Bestattung Wolf GmbH;102730;Bestattung Wolf GmbH;;;AT711700000109005290;BFKKAT2K
|
||||||
|
104359;BMS-Tech GmbH;104359;BMS-Tech GmbH;;;AT833849700003008315;RZSTAT2G497
|
||||||
|
102673;DiniTech GmbH;102673;DiniTech GmbH;;;AT613837400001017722;RZSTAT2G374
|
||||||
|
103418;ECO-Park Wernersdorf GmbH & Co KG;103418;ECO-Park Wernersdorf GmbH & Co KG;;;AT953805600003102357;RZSTAT2G056
|
||||||
|
103558;Elektrotechnik Neuhold GmbH;103558;Elektrotechnik Neuhold GmbH;;;AT332081527300010991;STSPAT2GXXX
|
||||||
|
104375;Erwin Nuster GmbH;104375;Erwin Nuster GmbH;;;AT773807500005000294;RZSTAT2G075
|
||||||
|
103680;FA. Delimax GmbH;103680;Franz Rauch ;AT233820600000057976;RZSTAT2G206;AT733820600000064642;RZSTAT2G206
|
||||||
|
102879;FAAC Türautomation Austria GmbH;102879;FAAC Türautomation Austria GmbH;;;AT561200010032280231;BKAUATWW
|
||||||
|
102682;FBF Management GmbH;102682;FBF Management GmbH;;;AT453821500000200998;RZSTAT2G215
|
||||||
|
104449;Florian Lugitsch KG ;104449;Florian Lugitsch KG;AT443807100000321240;RZSTAT2G071;AT691200002883040400;BKAUATWW
|
||||||
|
103301;Fürgast Betriebsgastronomie GmbH;103301;Fürgast Betriebsgastronomie GmbH;;;AT922081506700700377;STSPAT2GXXX
|
||||||
|
103321;Ing. Manfred Weitzer Bau GmbH;103321;Ing. Manfred Weitzer Bau GmbH;;;AT293815100006114144;RZSTAT2G151
|
||||||
|
1835;Johann Titz Ges.m.b.H (Hr. Stangl);1835;Johann Titz Ges.m.b.H (Hr. Stangl);AT485600021253057332;HYSTAT2G;AT883849700000340919;RZSTAT2G497
|
||||||
|
103724;Jugendcamp am Teich;103724;Gemeinde Hartl;;;AT493802300004342234;RZSTAT2G023
|
||||||
|
3792;KAPPER Planung & Baumanagement OG;3792;KAPPER Planung & Bauman. - Bmstr. Manuel Kapper ;AT852081500044023026;STSPAT2GXXX;AT852081500044023026;STSPAT2G
|
||||||
|
103563;KOHL GMBH &CO KG;103563;KOHL GMBH &CO KG;;;AT542081529900002881;STSPAT2GXXX
|
||||||
|
103756;Konrad Zimmerei GmbH;103756;Konrad Zimmerei GmbH;;;AT193800000006454870;RZSTAT2G
|
||||||
|
104373;Listro GmbH ;104373;Listro GmbH ;AT383825200000048843;RZSTAT2G52;AT383825200000048843;RZSTAT2G252
|
||||||
|
102414;LTC GmbH;102414;LTC GmbH;AT512081500040442980;STSSPAT2G;AT512081500040442980;STSPAT2GXXX
|
||||||
|
3106;Marktgemeinde Eibiswald;3106;Marktgemeinde Eibiswald (GS);;;AT883805600000072785;STSPAT2G
|
||||||
|
4917;Marktgemeinde Eibiswald;4917;Marktgemeinde Eibiswald;;;AT883805600000072785;RZSTAT2G056
|
||||||
|
3171;Marktgemeinde Wies;3171;Marktgemeinde WIES (GS);;;AT812081500040553117;
|
||||||
|
102795;MG Schwarzautal ;102795;MG Schwarzautal ;;;AT113837400002031011;RZSTAT2G374
|
||||||
|
102655;MQS-Automotive GmbH u. Co KG;102655;MQS-Automotive GmbH u. Co KG;;;DE92613914100081493002;GENODES1WEL
|
||||||
|
102744;Schwindhackl IMR GmbH;102744;Schwindhackl IMR GmbH;;;AT353818700100000059;RZSTAT2G187
|
||||||
|
102220;Sonnenwald GmbH;102220;Sonnenwald GmbH;;;AT482081507000005533;STSPAT2GXXX
|
||||||
|
104215;W.E.I.Z. Immobilien GmbH;104215;W.E.I.Z. Immobilien GmbH;;;AT162081512500016204;STSPAT2GXXX
|
||||||
|
103496;Weizer Energie- Innovations- Zentrum GmbH;103496;Weizer Energie- Innovations- Zentrum GmbH;;;AT333818700000145482;RZSTAT2G187
|
||||||
|
102876;Zengerer Planungs GmbH;102876;Zengerer Planungs GmbH;;;AT172081500001429901;STSPAT2GXXX
|
||||||
|
102699;Zirm Marie-Theres;102699;Zirm Marie-Theres;;;AT526000000078187326;BAWAATWWXXX
|
||||||
|
104393;Zotter Schokolade GmbH;104393;Zotter Schokolade GmbH;;;AT613100000104027173;RZBAATWWXXX
|
||||||
|
Reference in New Issue
Block a user