From dfc85a4245f2d15f258d840b98f0508c50228e40 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 25 Mar 2013 15:47:34 -0700 Subject: email opt-out flag, #19312 --- httemplate/elements/menu.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'httemplate/elements') diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 00c43bb09..14d36c31d 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -464,6 +464,8 @@ $tools_menu{'Job Queue'} = [ $fsurl.'search/queue.html', 'View pending job queu if $curuser->access_right('Job queue'); $tools_menu{'Ticketing'} = [ \%tools_ticketing, 'Ticketing tools' ] if $conf->config('ticket_system'); +$tools_menu{'Customer email settings'} = [ $fsurl.'misc/manage_cust_email.html' ] + if $curuser->access_right('Edit customer'); $tools_menu{'Business card scan'} = [ $fsurl.'edit/prospect_main-upload.html' ] if $curuser->access_right('New prospect'); $tools_menu{'Time Queue'} = [ $fsurl.'search/report_timeworked.html', 'View pending support time' ] -- cgit v1.2.1 From 8e73bf5782dc6fe2b299ba759ad15780a8946cc4 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 25 Mar 2013 19:32:23 -0700 Subject: option to show payment history in reverse order, #19698 --- httemplate/elements/change_history_common.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/change_history_common.html b/httemplate/elements/change_history_common.html index 232664e39..34ce70b6c 100644 --- a/httemplate/elements/change_history_common.html +++ b/httemplate/elements/change_history_common.html @@ -15,13 +15,7 @@ Description -% foreach my $item ( sort { $a->history_date <=> $b->history_date -% #|| table order -% || $a->historynum <=> $b->historynum -% } -% @history -% ) -% { +% foreach my $item ( @history ) { % my $history_other = ''; % my $act = $item->history_action; % if ( $act =~ /^replace/ ) { @@ -196,4 +190,11 @@ $cust_pkg_date_format .= ' %l:%M:%S%P' if $conf->exists('cust_pkg-display_times') || $curuser->option('cust_pkg-display_times'); +@history = sort { $a->history_date <=> $b->history_date + || $a->historynum <=> $b->historynum } @history; + +if ( $curuser->option('history_order') eq 'newest' ) { + @history = reverse @history; +} + -- cgit v1.2.1