projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manual echeck payment type, RT#26995
[freeside.git]
/
httemplate
/
view
/
cust_bill.cgi
diff --git
a/httemplate/view/cust_bill.cgi
b/httemplate/view/cust_bill.cgi
index
4822ab7
..
27376d5
100755
(executable)
--- a/
httemplate/view/cust_bill.cgi
+++ b/
httemplate/view/cust_bill.cgi
@@
-25,7
+25,7
@@
% }
% if ( $cust_bill->owed > 0
% }
% if ( $cust_bill->owed > 0
-% && scalar( grep $payby{$_}, qw(BILL CASH WEST MCRD) )
+% && scalar( grep $payby{$_}, qw(BILL CASH WEST MCRD
MCHK
) )
% && $curuser->access_right(['Post payment', 'Post check payment', 'Post cash payment'])
% && ! $conf->exists('pkg-balances')
% )
% && $curuser->access_right(['Post payment', 'Post check payment', 'Post cash payment'])
% && ! $conf->exists('pkg-balances')
% )
@@
-54,6
+54,11
@@
<A HREF="<% $p %>edit/cust_pay.cgi?payby=MCRD;invnum=<% $invnum %>"><% mt('manual credit card') |h %></A>
% }
<A HREF="<% $p %>edit/cust_pay.cgi?payby=MCRD;invnum=<% $invnum %>"><% mt('manual credit card') |h %></A>
% }
+% if ( $payby{'MCHK'} && $curuser->access_right(['Post payment']) ) {
+ <% $s++ ? ' | ' : '' %>
+ <A HREF="<% $p %>edit/cust_pay.cgi?payby=MCHK;invnum=<% $invnum %>"><% mt('manual electronic check') |h %></A>
+% }
+
<% mt('payment against this invoice') |h %><BR><BR>
% }
<% mt('payment against this invoice') |h %><BR><BR>
% }
@@
-135,10
+140,10
@@
function change_invoice_mode(obj) {
<% $br ? '<BR><BR>' : '' %>
<% $br ? '<BR><BR>' : '' %>
-% if ( $conf->exists('invoice_html') ) {
+% if ( $conf->exists('invoice_html')
&& ! $cgi->param('plaintext')
) {
<% join('', $cust_bill->print_html(\%opt) ) %>
% } else {
<% join('', $cust_bill->print_html(\%opt) ) %>
% } else {
- <PRE><% join('', $cust_bill->print_text(\%opt) ) %></PRE>
+ <PRE><% join('', $cust_bill->print_text(\%opt) )
|h
%></PRE>
% }
<& /elements/footer.html &>
% }
<& /elements/footer.html &>