% if ( $link eq 'popup' ) {
<& /elements/header-popup.html, mt('Refund Receipt') &>
<% mt('Print') |h %>
% } elsif ( $link eq 'print' ) {
<& /elements/header-popup.html, mt('Refund Receipt') &>
% #it would be nice if the menubar could be hidden for print, but better to
% # have it available than not, otherwise the user winds up at a dead end
<% menubar(
mt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum",
)
%>
% } else {
<& /elements/header.html, mt('Refund Receipt'), menubar(
mt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum",
mt('Print receipt') => $pr_link,
)
&>
% }
% unless ($link eq 'popup' ) {
<& /elements/small_custview.html,
$custnum,
scalar($conf->config('countrydefault')),
1, #no balance
&>
% }
<% ntable("#cccccc", 2) %>
<% mt('Refund #') |h %> |
<% $cust_refund->refundnum %> |
<% mt('Date') |h %> |
<% time2str"%a %b %o, %Y %r", $cust_refund->_date %> |
<% mt('Amount') |h %> |
<% $money_char. $cust_refund->refund %> |
<% mt('Reason') |h %> |
<% $cust_refund->reason %> |
<% mt('Refund method') |h %> |
<% $cust_refund->payby_name %><% $cust_refund->paymask ? ' #'.$cust_refund->paymask : '' %> |
% if ( $cust_refund->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_refund->paybatch ) {
<% mt('Processor') |h %> |
<% $cust_refund->processor %> |
<% mt('Authorization #') |h %> |
<% $cust_refund->authorization %> |
% if ( $cust_refund->order_number ) {
<% mt('Order #') |h %> |
<% $cust_refund->order_number %> |
% }
% }
% if ( $link eq 'print' ) {
% }
% if ( $link =~ /^(popup|print)$/ ) {