Merge branch 'fronkdev' into 'master'
Fixed not returning bbcode when upload bb >300 and <1000 See merge request fronk/thetool!812
This commit is contained in:
@@ -311,16 +311,16 @@ class Admin_RtrReporting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$bb_down) {
|
if(!$bb_down) {
|
||||||
/*$m = [];
|
|
||||||
if(preg_match('@\d/\d@', $contract->product_name, $m)) {
|
|
||||||
|
|
||||||
}*/
|
|
||||||
echo "Keine BB für ".$contract->product_name." ".$contract->id."\n";
|
echo "Keine BB für ".$contract->product_name." ".$contract->id."\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$is_sym = false;
|
$is_sym = false;
|
||||||
|
|
||||||
|
$bb_code = 0;
|
||||||
|
$bb_code_down = 0;
|
||||||
|
$bb_code_up = 0;
|
||||||
|
|
||||||
if($bb_down == $bb_up) {
|
if($bb_down == $bb_up) {
|
||||||
$is_sym = true;
|
$is_sym = true;
|
||||||
$bb_code = $this->getRtrBBCode($bb_down, "sym");
|
$bb_code = $this->getRtrBBCode($bb_down, "sym");
|
||||||
@@ -330,7 +330,6 @@ class Admin_RtrReporting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($contract->termination_id) {
|
if($contract->termination_id) {
|
||||||
$plz = trim($contract->termination->building->zip);
|
$plz = trim($contract->termination->building->zip);
|
||||||
$ort = trim($contract->termination->building->city);
|
$ort = trim($contract->termination->building->city);
|
||||||
@@ -348,8 +347,6 @@ class Admin_RtrReporting {
|
|||||||
$ort = preg_replace('/\s+/', ' ', $ort);
|
$ort = preg_replace('/\s+/', ' ', $ort);
|
||||||
$orte = [$ort];
|
$orte = [$ort];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(substr($ort, 0, 4) == "St. " || substr($ort, 0, 4) == "St, ") {
|
if(substr($ort, 0, 4) == "St. " || substr($ort, 0, 4) == "St, ") {
|
||||||
$orte[] = preg_replace('/^St[.,]/', "Sankt", $ort);
|
$orte[] = preg_replace('/^St[.,]/', "Sankt", $ort);
|
||||||
}
|
}
|
||||||
@@ -422,6 +419,7 @@ class Admin_RtrReporting {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$csv_header = "gemid;code;bb;anz_akt_anschl";
|
$csv_header = "gemid;code;bb;anz_akt_anschl";
|
||||||
$csv = $csv_header."\n";
|
$csv = $csv_header."\n";
|
||||||
foreach($data as $gemid => $gem) {
|
foreach($data as $gemid => $gem) {
|
||||||
@@ -493,7 +491,7 @@ class Admin_RtrReporting {
|
|||||||
if($bb >= 40 && $bb < 100) return 60;
|
if($bb >= 40 && $bb < 100) return 60;
|
||||||
if($bb >= 100 && $bb < 150) return 61;
|
if($bb >= 100 && $bb < 150) return 61;
|
||||||
if($bb >= 150 && $bb < 300) return 62;
|
if($bb >= 150 && $bb < 300) return 62;
|
||||||
if($bb >= 3000 && $bb < 1000) return 63;
|
if($bb >= 300 && $bb < 1000) return 63;
|
||||||
if($bb >= 1000) return 64;
|
if($bb >= 1000) return 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -513,7 +511,7 @@ class Admin_RtrReporting {
|
|||||||
if($bb >= 1000) return 33;
|
if($bb >= 1000) return 33;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return "x";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user