blob: 3515d856d13a1d03772680ba95e3061f3b4a11a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<DEL><% emt("Credit by [_1]", $cust_credit_void->otaker, $reason ) %>\
<% $reason |h %></DEL>
<I>
<% emt("voided [_1]", time2str($date_format, $cust_credit_void->void_date) )%>
% my $void_user = $cust_credit_void->void_access_user;
% if ($void_user) {
<% emt('by [_1]', $void_user->username) %>
% }
<% $void_reason |h %>
</I>
<% $unvoid %>
<%init>
my( $cust_credit_void, %opt ) = @_;
my $date_format = $opt{'date_format'} || '%m/%d/%Y';
my $unvoid = '';
$unvoid = areyousure_link("${p}misc/unvoid-cust_credit_void.cgi?".$cust_credit_void->crednum,
emt('Are you sure you want to unvoid this credit?'),
'',
emt('unvoid')
)
if $cust_credit_void->closed !~ /^Y/i
&& $opt{'Unvoid credit'};
my $reason = $cust_credit_void->reason;
$reason = " ($reason)" if $reason;
my $void_reason = $cust_credit_void->void_reason;
$void_reason = " ($void_reason)" if $void_reason;
</%init>
|