<DEL><% mt("Payment [_1] by [_2]", $info, $cust_pay_void->otaker ) |h %></DEL>
-<I><% mt("voided [_1]", time2str($date_format, $cust_pay_void->void_date) ) |h %>
+<I>voided
% my $void_user = $cust_pay_void->void_access_user;
% if ($void_user) {
- by <% $void_user->username %></I>
+ 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 %>
+</I>
<% $unvoid %>
<%init>
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)" : '';
my $unvoid = '';
my $unvoidmsg = $cust_pay_void->payby =~ /^(CARD|CHEK)$/
- ? ' ('.mt('do not send anything to the payment gateway') .')'
+ ? ' ('.emt('do not send anything to the payment gateway') .')'
: '';
$unvoid = areyousure_link("${p}misc/unvoid-cust_pay_void.cgi?".$cust_pay_void->paynum,
- mt('Are you sure you want to unvoid this payment?'),
- mt('Unvoid this payment from the database') . $unvoidmsg,
- mt('unvoid')
+ emt('Are you sure you want to unvoid this payment?'),
+ emt('Unvoid this payment from the database') . $unvoidmsg,
+ emt('unvoid')
)
- if ( $cust_pay_void->closed !~ /^Y/i && $curuser->access_right('Unvoid') );
+ if $cust_pay_void->closed !~ /^Y/i && $opt{'Unvoid payments'};
</%init>