From: Alex Brelsfoard Date: Sun, 1 Feb 2015 04:29:13 +0000 (-0500) Subject: RT #25498 adding reason to voided payments and voided invoices on payment history X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=e9d371c33b5f53fd078c5f5a7d93e5c36743c8bc RT #25498 adding reason to voided payments and voided invoices on payment history --- diff --git a/httemplate/view/cust_main/payment_history/voided_invoice.html b/httemplate/view/cust_main/payment_history/voided_invoice.html index f9ff3079a..a64501fc0 100644 --- a/httemplate/view/cust_main/payment_history/voided_invoice.html +++ b/httemplate/view/cust_main/payment_history/voided_invoice.html @@ -1,9 +1,15 @@ <% $link %><% $invoice %><% $link ? '' : '' %> -<% mt("voided [_1]", time2str($date_format, $cust_bill_void->void_date) ) |h %> +voided % my $void_user = $cust_bill_void->void_access_user; % if ($void_user) { - by <% $void_user->username %> + by <% $void_user->username %> % } +% my $reason = $cust_bill_void->reason; +% if ($reason) { + (<% $reason %>) +% } +<% mt("on [_1]", time2str($date_format, $cust_bill_void->void_date) ) |h %> + <% "$unvoid$delete$under" %> <%init> diff --git a/httemplate/view/cust_main/payment_history/voided_payment.html b/httemplate/view/cust_main/payment_history/voided_payment.html index a8194a75f..63cfb309f 100644 --- a/httemplate/view/cust_main/payment_history/voided_payment.html +++ b/httemplate/view/cust_main/payment_history/voided_payment.html @@ -1,9 +1,15 @@ <% mt("Payment [_1] by [_2]", $info, $cust_pay_void->otaker ) |h %> -<% mt("voided [_1]", time2str($date_format, $cust_pay_void->void_date) ) |h %> +voided % my $void_user = $cust_pay_void->void_access_user; % if ($void_user) { - by <% $void_user->username %> + by <% $void_user->username %> % } +% my $reason = $cust_pay_void->reason; +% if ($reason) { + (<% $reason %>) +% } +<% mt("on [_1]", time2str($date_format, $cust_pay_void->void_date) ) |h %> + <% $unvoid %> <%init>