X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_pay.html;h=1408b3db2f8ed653e848c6bcff3bfeaaeddb1b6f;hb=7637f73d594307c314c844fde0b92f3d7ae282cc;hp=a5c99ac55d5fc9299754d12c6e32727e4988edd7;hpb=b00657d2dd62614568501df47d1be4cbfa15eb48;p=freeside.git
diff --git a/httemplate/view/cust_pay.html b/httemplate/view/cust_pay.html
index a5c99ac55..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')),
@@ -93,6 +101,15 @@
% }
+% if ( $conf->exists('pkg-balances') && $cust_pay->pkgnum ) {
+% my $cust_pkg = qsearchs('cust_pkg', { 'pkgnum' => $cust_pay->pkgnum } );
+
+ For package |
+ <% $cust_pkg->pkg_label_long %> |
+
+
+% }
+
% if ( $link eq 'print' ) {
@@ -101,9 +118,14 @@
window.print();
-% }
+% } elsif ( $link eq 'email' ) {
-% if ( $link =~ /^(popup|print)$/ ) {
+
+
+% }
+% if ( $link =~ /^(popup|print|email)$/ ) {