Fix no usage_summary for services not active yet, minor improvements to traffic graph
This commit is contained in:
parent
b01976a6ae
commit
84fa5f6546
@ -136,9 +136,9 @@ class Adsl extends ServiceType implements ServiceItem,ServiceUsage
|
|||||||
/**
|
/**
|
||||||
* Find the last date any traffic was recorded for a service
|
* Find the last date any traffic was recorded for a service
|
||||||
*
|
*
|
||||||
* @return AdslTraffic
|
* @return AdslTraffic|null
|
||||||
*/
|
*/
|
||||||
private function usage_last_date(): AdslTraffic
|
private function usage_last_date(): ?AdslTraffic
|
||||||
{
|
{
|
||||||
return $this->traffic
|
return $this->traffic
|
||||||
->sortBy('date')
|
->sortBy('date')
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Period</th>
|
<th>Period</th>
|
||||||
<th class="text-right">Traffic</th>
|
<th class="text-right">Traffic <small>(GB)</small></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -41,7 +41,10 @@
|
|||||||
|
|
||||||
Highcharts.setOptions({
|
Highcharts.setOptions({
|
||||||
global: {
|
global: {
|
||||||
timezoneOffset: timezone
|
timezoneOffset: timezone,
|
||||||
|
},
|
||||||
|
lang: {
|
||||||
|
thousandsSep: ','
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user