X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_refund.html;h=996b4c05a4d47be1a9b227ae208060f34e2897e5;hb=b431ece7b4a71aa5771f44393da582692f668817;hp=557e0ab243dbfe2a3b43d7cac769cb137954cdf7;hpb=46a7257273fdae101658c8a1ee74f654ca0876b5;p=freeside.git diff --git a/httemplate/view/cust_refund.html b/httemplate/view/cust_refund.html index 557e0ab24..996b4c05a 100644 --- a/httemplate/view/cust_refund.html +++ b/httemplate/view/cust_refund.html @@ -1,83 +1,82 @@ % if ( $link eq 'popup' ) { - <% include('/elements/header-popup.html', "Refund Receipt" ) %> + <& /elements/header-popup.html, mt('Refund Receipt') &> -
Print

+
<% mt('Print') |h %>

% } elsif ( $link eq 'print' ) { - <% include('/elements/header-popup.html', "Refund Receipt" ) %> + <& /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( - "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", + emt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum", ) %>

% } else { - <% include('/elements/header.html', "Refund Receipt", menubar( - "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", - 'Print receipt' => $pr_link, - )) - %> + <& /elements/header.html, mt('Refund Receipt'), menubar( + emt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum", + emt('Print receipt') => $pr_link, + ) + &> % } % unless ($link eq 'popup' ) { - <% include('/elements/small_custview.html', + <& /elements/small_custview.html, $custnum, scalar($conf->config('countrydefault')), 1, #no balance - ) - %> + &>

% } <% ntable("#cccccc", 2) %> - Refund# + <% mt('Refund #') |h %> <% $cust_refund->refundnum %> - Date + <% mt('Date') |h %> <% time2str"%a %b %o, %Y %r", $cust_refund->_date %> - Amount + <% mt('Amount') |h %> <% $money_char. $cust_refund->refund %> - Reason + <% mt('Reason') |h %> <% $cust_refund->reason %> - Refund method + <% mt('Refund method') |h %> <% $cust_refund->payby_name %><% $cust_refund->paymask ? ' #'.$cust_refund->paymask : '' %> % if ( $cust_refund->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_refund->paybatch ) { - Processor + <% mt('Processor') |h %> <% $cust_refund->processor %> - Authorization# + <% mt('Authorization #') |h %> <% $cust_refund->authorization %> % if ( $cust_refund->order_number ) { - Order# + <% mt('Order #') |h %> <% $cust_refund->order_number %> % } @@ -98,7 +97,7 @@ % } else { - <% include('/elements/footer.html') %> + <& /elements/footer.html &> % } <%init> @@ -106,10 +105,8 @@ my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" - unless $curuser->access_right('View invoices') #remove this in 1.9 EVENTUALLY - || $curuser->access_right('View customer payments'); - #'View customer refunds' ??? - + unless $curuser->access_right('View invoices') #remove this in 2.5 (2.7?) + || $curuser->access_right('View refunds'); $cgi->param('refundnum') =~ /^(\d+)$/ or die "no refundnum"; my $refundnum = $1; @@ -131,6 +128,7 @@ die "Refund #$refundnum not found!" unless $cust_refund; my $pr_link = "${p}view/cust_refund.html?link=print;refundnum=$refundnum"; my $custnum = $cust_refund->custnum; +my $display_custnum = $cust_refund->cust_main->display_custnum; my $conf = new FS::Conf;