X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fview_usage_details.html;h=27afe12a701fe7f3716b85cbce2fe65eed3f2da3;hp=9f02eba79f99712710dabdc2f6e0562bb6400bff;hb=0592d8e1ad7c8cab286b43743765fd1435cfac84;hpb=7f43bf155bc79e3c9bd5d88e53117595963c301e diff --git a/fs_selfservice/FS-SelfService/cgi/view_usage_details.html b/fs_selfservice/FS-SelfService/cgi/view_usage_details.html index 9f02eba79..27afe12a7 100644 --- a/fs_selfservice/FS-SelfService/cgi/view_usage_details.html +++ b/fs_selfservice/FS-SelfService/cgi/view_usage_details.html @@ -1,10 +1,10 @@ -<%= $url = "$selfurl?session=$session_id;action="; ''; %> -<%= include('header') %> - -Service usage details for -<%= Date::Format::time2str('%b %o %Y', $beginning) %> - -<%= Date::Format::time2str('%b %o %Y', $ending) %> -

+<%= $url = "$selfurl?;action="; ''; %> +<%= include('header', 'Service usage details for '. + Date::Format::time2str('%b %o %Y', $beginning). + ' - '. + Date::Format::time2str('%b %o %Y', $ending) + ) +%> <%= if ( $error ) { $OUT .= qq!$error

!; @@ -47,7 +47,9 @@ $OUT .= ''; $OUT .= Date::Format::time2str('%T%P %a %b %o %Y', $usage->{'acctstarttime'}); $OUT .= ''; - my $duration = $usage->{'acctstoptime'} - $usage->{'acctstarttime'}; + my $duration = ( $usage->{'acctstoptime'} && $usage->{'acctstarttime'} ) + ? ( $usage->{'acctstoptime'} - $usage->{'acctstarttime'} ) + : 0; $total += $duration; my $h = int($duration/3600); my $m = sprintf("%02d", int(($duration % 3600) / 60));