From a2faeced765b00c0339fd86d7905cb77318e3d20 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 28 Jan 2015 02:24:07 -0800 Subject: sticky customer notes, RT#29311 --- httemplate/view/cust_main/notes/notes.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/notes/notes.html b/httemplate/view/cust_main/notes/notes.html index 6a7a06a02..fa45a68f2 100644 --- a/httemplate/view/cust_main/notes/notes.html +++ b/httemplate/view/cust_main/notes/notes.html @@ -34,6 +34,10 @@ % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; +% my %sticky_color = ( '#eeeeee' => '#ffff66', +% '#ffffff' => '#ffffb8', +% ); +% % my $bgcolor = ''; % my $last_classnum = -1; % my $skipheader = 0; @@ -56,7 +60,7 @@ % ";notenum=$notenum", % 'actionlabel' => emt('Edit customer note'), % 'width' => 616, -% 'height' => 538, #575 +% 'height' => 575, % 'frame' => 'top', % ); % my $clickjs = qq!onclick="$onclick"!; @@ -103,21 +107,23 @@ % $last_classnum = $note->classnum; % } +% my $color = $note->sticky ? $sticky_color{$bgcolor} : $bgcolor; + - <% note_datestr($note,$conf,$bgcolor) %> - + <% note_datestr($note,$conf,$color) %> +  <% $note->usernum ? $note->access_user->name : $note->otaker %> % if ($conf->exists('note-classes') && $conf->config('note-classes') == 1) { - + <% $note->classname %> % } - + <% $note->comments | defang %> % if($edit) { - <% $edit %> + <% $edit %> % } -- cgit v1.2.1 From 063d9f211aa19a26755279ad7277648cfdae6313 Mon Sep 17 00:00:00 2001 From: Alex Brelsfoard Date: Wed, 28 Jan 2015 06:15:41 -0500 Subject: RT #25498 adding reason to voided payments and voided invoices on payment history --- httemplate/view/cust_main/payment_history/voided_invoice.html | 2 +- httemplate/view/cust_main/payment_history/voided_payment.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/payment_history/voided_invoice.html b/httemplate/view/cust_main/payment_history/voided_invoice.html index f9ff3079a..ba51b3bca 100644 --- a/httemplate/view/cust_main/payment_history/voided_invoice.html +++ b/httemplate/view/cust_main/payment_history/voided_invoice.html @@ -1,5 +1,5 @@ <% $link %><% $invoice %><% $link ? '' : '' %> -<% mt("voided [_1]", time2str($date_format, $cust_bill_void->void_date) ) |h %> +<% mt("voided ([_1]) [_2]", $cust_bill_void->reason, time2str($date_format, $cust_bill_void->void_date) ) |h %> % my $void_user = $cust_bill_void->void_access_user; % if ($void_user) { by <% $void_user->username %> diff --git a/httemplate/view/cust_main/payment_history/voided_payment.html b/httemplate/view/cust_main/payment_history/voided_payment.html index a8194a75f..207ab9cdd 100644 --- a/httemplate/view/cust_main/payment_history/voided_payment.html +++ b/httemplate/view/cust_main/payment_history/voided_payment.html @@ -1,5 +1,5 @@ <% mt("Payment [_1] by [_2]", $info, $cust_pay_void->otaker ) |h %> -<% mt("voided [_1]", time2str($date_format, $cust_pay_void->void_date) ) |h %> +<% mt("voided ([_1]) [_2]", $cust_pay_void->reason, time2str($date_format, $cust_pay_void->void_date) ) |h %> % my $void_user = $cust_pay_void->void_access_user; % if ($void_user) { by <% $void_user->username %> -- cgit v1.2.1