X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_pay.html;h=f9c8bc19cd6995069d163ae4c85d90c224909982;hb=5214a5560240667a3a914c45df046b420926a5ec;hp=4037d3525f777f37f6326bb9a16a0bdbfbb13d3f;hpb=64d25e2c55bb46c56108ab56c141e0feb69f6540;p=freeside.git
diff --git a/httemplate/view/cust_pay.html b/httemplate/view/cust_pay.html
index 4037d3525..f9c8bc19c 100644
--- a/httemplate/view/cust_pay.html
+++ b/httemplate/view/cust_pay.html
@@ -1,84 +1,134 @@
% if ( $link eq 'popup' ) {
- <% include('/elements/header-popup.html', "Payment Receipt" ) %>
+ <& /elements/header-popup.html, mt("$thing Receipt") &>
-
Print
+
% } elsif ( $link eq 'print' ) {
- <% include('/elements/header-popup.html', "Payment Receipt" ) %>
+ <& /elements/header-popup.html, mt("$thing 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",
)
%>
-
+% } 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 {
- <% include('/elements/header.html', "Payment Receipt", menubar(
- "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
- 'Print receipt' => $pr_link,
- ))
- %>
+ <& /elements/header.html, mt("$thing 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',
+% unless ($link =~ /^(popup|email)$/ ) {
+ <& /elements/small_custview.html,
$custnum,
scalar($conf->config('countrydefault')),
1, #no balance
- )
- %>
+ &>
% }
<% ntable("#cccccc", 2) %>
- Payment# |
+ <% mt('Payment #') |h %> |
<% $cust_pay->paynum %> |
- Date |
+ <% mt('Date') |h %> |
<% time2str"%a %b %o, %Y %r", $cust_pay->_date %> |
+% if ( $void ) {
+
+
+ <% mt('Void Date') |h %> |
+ <% time2str"%a %b %o, %Y %r", $cust_pay->void_date %> |
+
+
+%#
+%# <% mt('Void reason') |h %> |
+%# <% $cust_pay->reason %> |
+%#
+
+% }
- Amount |
+ <% mt('Amount') |h %> |
<% $money_char. $cust_pay->paid %> |
-
- Payment method |
+ <% mt('Payment method') |h %> |
<% $cust_pay->payby_name %> #<% $cust_pay->paymask %> |
% if ( $cust_pay->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_pay->paybatch ) {
- Processor |
+ <% mt('Processor') |h %> |
<% $cust_pay->processor %> |
- Authorization# |
+ <% mt('Authorization #') |h %> |
<% $cust_pay->authorization %> |
% if ( $cust_pay->order_number ) {
- Order# |
+ <% mt('Order #') |h %> |
<% $cust_pay->order_number %> |
% }
% }
+% if ( $cust_pay->payby eq 'CASH' && $cust_pay->payinfo ) {
+
+ <% mt('Bank') |h %> |
+ <% $cust_pay->bank %> |
+
+
+
+ <% mt('Teller #') |h %> |
+ <% $cust_pay->teller %> |
+
+
+
+ <% mt('Depositor') |h %> |
+ <% $cust_pay->depositor %> |
+
+
+
+ <% mt('Account #') |h %> |
+ <% $cust_pay->account %> |
+
+% }
+
+% if ( $conf->exists('pkg-balances') && $cust_pay->pkgnum ) {
+% my $cust_pkg = qsearchs('cust_pkg', { 'pkgnum' => $cust_pay->pkgnum } );
+
+ <% mt('For package') |h %> |
+ <% $cust_pkg->pkg_label_long %> |
+
+
+% }
+
% if ( $link eq 'print' ) {
@@ -87,13 +137,18 @@
window.print();
-% }
+% } elsif ( $link eq 'email' ) {
+
+
-% if ( $link =~ /^(popup|print)$/ ) {
+% }
+% if ( $link =~ /^(popup|print|email)$/ ) {