X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history%2Fvoided_credit.html;h=3515d856d13a1d03772680ba95e3061f3b4a11a1;hb=5b0df166c22e13eba83fabee858846ead6a54141;hp=9ff4c1b1b6c217cee9e196ffa7b442af1b1208d6;hpb=359004f4f4091e9789cb6e23a97c8eb89256d0b2;p=freeside.git diff --git a/httemplate/view/cust_main/payment_history/voided_credit.html b/httemplate/view/cust_main/payment_history/voided_credit.html index 9ff4c1b1b..3515d856d 100644 --- a/httemplate/view/cust_main/payment_history/voided_credit.html +++ b/httemplate/view/cust_main/payment_history/voided_credit.html @@ -8,16 +8,26 @@ % } <% $void_reason |h %> +<% $unvoid %> <%init> my( $cust_credit_void, %opt ) = @_; my $date_format = $opt{'date_format'} || '%m/%d/%Y'; -#my $unvoid = ''; # not yet available +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; +