tuning C10 report

This commit is contained in:
Frank Schubert
2024-12-17 21:34:48 +01:00
parent 2759c75980
commit 4a8effffe4

View File

@@ -6,6 +6,7 @@ class Admin_RtrReporting {
private $log;
private $flash = [];
private $systemowner_id = 1;
private $systemowner_rtr_id = 3452;
private $energie_bb_id = 209;
private $netowner_is_systemowner = [
@@ -484,6 +485,9 @@ class Admin_RtrReporting {
}
$netowner = new Address($netowner_id);
if($netowner_id != $this->systemowner_id && ($prod_code == "14311" || $prod_code == "14312")) {
continue;
}
if($netowner->id && is_array($netowner->attributes) && array_key_exists("rtrcode", $netowner->attributes) && $netowner->attributes["rtrcode"]->value) {
$prov_id = $netowner->attributes["rtrcode"]->value;
@@ -497,8 +501,8 @@ class Admin_RtrReporting {
$prod_code_p = $prod_code_start."1";
$prod_code_b = $prod_code_start."2";
if(!$prov_id) {
if(substr($prod_code_start,0, 3) == "343") {
if(!$prov_id || $prov_id == $this->systemowner_rtr_id) {
if(substr($prod_code_start,0, 3) == "343" || $prod_code_start == "1432") {
// is OAN product
$prov_id = $energie_bb->attributes["rtrcode"]->value;
}
@@ -520,6 +524,7 @@ class Admin_RtrReporting {
}
}
//var_dump($data);exit;
$csv_header = "partnernetz_id;code";