';
$OUT .= $usage->{'ticketid'};
$OUT .= ' | ';
$OUT .= $usage->{'subject'};
$OUT .= ' | ';
$OUT .= $usage->{'creator'};
$OUT .= ' | ';
$OUT .= Date::Format::time2str('%T%P %a %b %o %Y', $usage->{'_date'});
$OUT .= ' | ';
$OUT .= $usage->{'status'};
$OUT .= ' | ';
my $duration = $usage->{'support'};
$total += $usage->{'support'};
my $h = int($duration/3600);
my $m = sprintf("%02d", int(($duration % 3600) / 60));
my $s = sprintf("%02d", $duration % 60);
$OUT .= $usage->{'support'} < 0 ? '-' : '';
$OUT .= "$h:$m:$s";
$OUT .= ' |
';
}
my $h = int($total/3600);
my $m = sprintf("%02d", int(($total % 3600) / 60));
my $s = sprintf("%02d", $total % 60);
$OUT .= qq!