X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fvoided_payment.html;h=e295f9b3b93ec85dc697f396ac9487289eef543a;hb=55c7e3cc18a45620f48ae62d3bc044a830bd8c95;hp=88b5e0a84265003b9157f471af0879dc009d8436;hpb=bec3b6c2bf97d66b992866d7ee7295f1f05452e6;p=freeside.git
diff --git a/httemplate/view/cust_main/payment_history/voided_payment.html b/httemplate/view/cust_main/payment_history/voided_payment.html
index 88b5e0a84..e295f9b3b 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 |h %>)
+% }
+<% mt("on [_1]", time2str($date_format, $cust_pay_void->void_date) ) |h %>
+
<% $unvoid %>
<%init>
@@ -11,8 +17,6 @@ my( $cust_pay_void, %opt ) = @_;
my $date_format = $opt{'date_format'} || '%m/%d/%Y';
-my $curuser = $FS::CurrentUser::CurrentUser;
-
my ($payby,$payinfo) = translate_payinfo($cust_pay_void);
$payby = translate_payby($payby,$payinfo);
my $info = $payby ? "($payby$payinfo)" : '';
@@ -31,6 +35,6 @@ $unvoid = areyousure_link("${p}misc/unvoid-cust_pay_void.cgi?".$cust_pay_void->p
emt('Unvoid this payment from the database') . $unvoidmsg,
emt('unvoid')
)
- if ( $cust_pay_void->closed !~ /^Y/i && $curuser->access_right('Unvoid payments') );
+ if $cust_pay_void->closed !~ /^Y/i && $opt{'Unvoid payments'};
%init>