From: ivan Date: Tue, 9 Oct 2007 01:01:41 +0000 (+0000) Subject: i think this should fix timeworked subjects, and link to the transactions as well X-Git-Tag: TRIXBOX_2_6~283 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f481fcc27b20d1a3aee48a613a52395e7cffd871 i think this should fix timeworked subjects, and link to the transactions as well --- diff --git a/httemplate/misc/timeworked.html b/httemplate/misc/timeworked.html index f85a62835..ac5996087 100755 --- a/httemplate/misc/timeworked.html +++ b/httemplate/misc/timeworked.html @@ -29,27 +29,28 @@ -% foreach ( keys %ticketmap ) { -% my (@customers) = @{$customers{$ticketmap{$_}}}; +% foreach my $tr_id ( keys %ticketmap ) { +% my (@customers) = @{$customers{$ticketmap{$tr_id}}}; % next unless @customers; % my $multiplier = sprintf("%.2f", 1/@customers); % my ($custnum, $name) = split(':', pop @customers, 2); +% my $link = $p. 'rt/Ticket/Display.html?id='. $ticketmap{$tr_id}. +% '#txn-'. $tr_id; - <% $_ %> - <% $ticketmap{$_} %> - <% $ticket{$_} %> - <% sprintf("%0.2f", $cgi->param("seconds$_")/3600) %> + <% $tr_id %> + <% $ticketmap{$tr_id} %> + <% $ticket{$ticketmap{$tr_id}} %> + <% sprintf("%0.2f", $cgi->param("seconds$tr_id")/3600) %> <% $custnum %> <% $name %> - - " > - param("multiplier${_}_$custnum") : $multiplier %>" > + + " > + param("multiplier${_}_$custnum") : $multiplier %>" > -% my $tr_id = $_; % foreach ( @customers ) { % ($custnum, $name) = split(':', $_, 2);