X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_refund.html;h=d5f5eb2321cdf3b2c52f8964be09ab25ae283a3b;hb=59669128b6409e2556aa26d659c5cc22a1c7b945;hp=0bef89d05eb31ac0582217595d1c43593d409668;hpb=dbeee87d487220a1eea4a8f65534293bb6f82df6;p=freeside.git
diff --git a/httemplate/view/cust_refund.html b/httemplate/view/cust_refund.html
index 0bef89d05..d5f5eb232 100644
--- a/httemplate/view/cust_refund.html
+++ b/httemplate/view/cust_refund.html
@@ -2,7 +2,12 @@
<& /elements/header-popup.html, mt('Refund Receipt') &>
-
<% mt('Print') |h %>
+
% } elsif ( $link eq 'print' ) {
@@ -11,22 +16,28 @@
% #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')." (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum",
+ emt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum",
)
%>
+% } elsif ( $link eq 'email' ) {
+% if ( $email_error ) {
+ <& /elements/header-popup.html, mt("Error re-emailing receipt: [_1]", $email_error) &>
+% } else {
+ <& /elements/header-popup.html, mt("Re-emailed receipt") &>
+% }
% } else {
<& /elements/header.html, mt('Refund Receipt'), menubar(
- mt('View this customer')." (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum",
- mt('Print receipt') => $pr_link,
+ emt("View this customer (#[_1])",$display_custnum) => "${p}view/cust_main.cgi?$custnum",
+ emt('Print receipt') => $pr_link,
)
&>
% }
-% unless ($link eq 'popup' ) {
+% unless ($link =~ /^(popup|email)$/ ) {
<& /elements/small_custview.html,
$custnum,
scalar($conf->config('countrydefault')),
@@ -38,7 +49,7 @@
<% ntable("#cccccc", 2) %>
- <% mt('Refund') |h %># |
+ <% mt('Refund #') |h %> |
<% $cust_refund->refundnum %> |
@@ -62,7 +73,7 @@
<% $cust_refund->payby_name %><% $cust_refund->paymask ? ' #'.$cust_refund->paymask : '' %> |
-% if ( $cust_refund->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_refund->paybatch ) {
+% if ( $cust_refund->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_refund->processor ) {
<% mt('Processor') |h %> |
@@ -70,13 +81,13 @@
- <% mt('Authorization') |h %># |
- <% $cust_refund->authorization %> |
+ <% mt('Authorization #') |h %> |
+ <% $cust_refund->auth %> |
% if ( $cust_refund->order_number ) {
- <% mt('Order') |h %># |
+ <% mt('Order #') |h %> |
<% $cust_refund->order_number %> |
% }
@@ -91,9 +102,14 @@
window.print();
-% }
+% } elsif ( $link eq 'email' ) {
+
+
-% if ( $link =~ /^(popup|print)$/ ) {
+% }
+% if ( $link =~ /^(popup|print|email)$/ ) {