X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_pay.html;h=1408b3db2f8ed653e848c6bcff3bfeaaeddb1b6f;hb=874ad675da1321638b374d0b574231d7fa577196;hp=2f23d9e1451d952f81bc93576f40b6f85489d36f;hpb=4396080ed2829ae0595f1fd777f39d090c9bcd7c;p=freeside.git
diff --git a/httemplate/view/cust_pay.html b/httemplate/view/cust_pay.html
index 2f23d9e14..1408b3db2 100644
--- a/httemplate/view/cust_pay.html
+++ b/httemplate/view/cust_pay.html
@@ -2,7 +2,10 @@
<% include('/elements/header-popup.html', "$thing Receipt" ) %>
-
Print
+
% } elsif ( $link eq 'print' ) {
@@ -15,7 +18,12 @@
)
%>
-
+% } elsif ( $link eq 'email' ) {
+% if ( $email_error ) {
+ <% include('/elements/header-popup.html', "Error re-emailing receipt: $email_error" ) %>
+% } else {
+ <% include('/elements/header-popup.html', "Re-emailed receipt" ) %>
+% }
% } else {
<% include('/elements/header.html', "$thing Receipt", menubar(
@@ -26,7 +34,7 @@
% }
-% unless ($link eq 'popup' ) {
+% unless ($link =~ /^(popup|email)$/ ) {
<% include('/elements/small_custview.html',
$custnum,
scalar($conf->config('countrydefault')),
@@ -110,9 +118,14 @@
window.print();
-% }
+% } elsif ( $link eq 'email' ) {
-% if ( $link =~ /^(popup|print)$/ ) {
+
+
+% }
+% if ( $link =~ /^(popup|print|email)$/ ) {