X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_refund.html;h=d5f5eb2321cdf3b2c52f8964be09ab25ae283a3b;hb=4ef042d6aea8b8922fc5cfb596023d04da4690be;hp=31976150694c3b894eeede8bb83edbb965068532;hpb=e5d6af11f52aabe8c9e6e12ce43c3401ccf025a8;p=freeside.git
diff --git a/httemplate/view/cust_refund.html b/httemplate/view/cust_refund.html
index 319761506..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' ) {
@@ -16,6 +21,12 @@
%>
+% } 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(
@@ -26,7 +37,7 @@
% }
-% unless ($link eq 'popup' ) {
+% unless ($link =~ /^(popup|email)$/ ) {
<& /elements/small_custview.html,
$custnum,
scalar($conf->config('countrydefault')),
@@ -91,9 +102,14 @@
window.print();
-% }
+% } elsif ( $link eq 'email' ) {
-% if ( $link =~ /^(popup|print)$/ ) {
+
+
+% }
+% if ( $link =~ /^(popup|print|email)$/ ) {