X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_pay.html;h=76a24884af7bf11b68d517aa9f01848c7f28a709;hb=5e6bfa1548ac370d2cf316e0db44785d83baa453;hp=c9b2d51b518c0138c86775140f38c12344c11dba;hpb=8ef00c68688492b2afa3dde8d3d467f89f238c40;p=freeside.git
diff --git a/httemplate/view/cust_pay.html b/httemplate/view/cust_pay.html
index c9b2d51b5..76a24884a 100644
--- a/httemplate/view/cust_pay.html
+++ b/httemplate/view/cust_pay.html
@@ -77,7 +77,7 @@
<% $cust_pay->payby_name %> #<% $cust_pay->paymask %> |
-% if ( $cust_pay->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_pay->paybatch ) {
+% if ( $cust_pay->payby =~ /^(CARD|CHEK|LECB)$/ && $cust_pay->processor ) {
<% mt('Processor') |h %> |
@@ -86,7 +86,7 @@
<% mt('Authorization #') |h %> |
- <% $cust_pay->authorization %> |
+ <% $cust_pay->auth %> |
% if ( $cust_pay->order_number ) {
@@ -98,6 +98,28 @@
% }
+% 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 } );
@@ -134,8 +156,8 @@
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
- unless $curuser->access_right('View invoices') #remove this in 1.9 EVENTUALLY
- || $curuser->access_right('View customer payments');
+ unless $curuser->access_right('View invoices') #remove this in 2.5 (2.7?)
+ || $curuser->access_right('View payments');
$cgi->param('paynum') =~ /^(\d+)$/ or die "no paynum";
my $paynum = $1;