projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better prospect -> customer conversion, RT#7111
[freeside.git]
/
httemplate
/
view
/
cust_main
/
billing.html
diff --git
a/httemplate/view/cust_main/billing.html
b/httemplate/view/cust_main/billing.html
index
049461d
..
014ddab
100644
(file)
--- a/
httemplate/view/cust_main/billing.html
+++ b/
httemplate/view/cust_main/billing.html
@@
-5,7
+5,12
@@
Billing information
%if ( $FS::CurrentUser::CurrentUser->access_right('Bill customer now')
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
%if ( $FS::CurrentUser::CurrentUser->access_right('Bill customer now')
% && ! $cust_main->is_encrypted($cust_main->payinfo)
% ) {
- (<A HREF="<% $p %>misc/bill.cgi?<% $cust_main->custnum %>">Bill now</A>)
+%# (<A HREF="<% $p %>misc/bill.cgi?<% $cust_main->custnum %>">Bill now</A>)
+ (<% include('/elements/bill.html',
+ custnum => $cust_main->custnum,
+ label => 'Bill now',
+ url => $p.'view/cust_main.cgi?'.$cust_main->custnum,
+ ) %>)
% }
<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
% }
<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
@@
-127,7
+132,7
@@
Billing information
<TR>
<TD ALIGN="right">Attention</TD>
<TR>
<TD ALIGN="right">Attention</TD>
- <TD BGCOLOR="#ffffff"><% $cust_main->payname %></TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->payname
|h
%></TD>
</TR>
% } elsif ( $cust_main->payby eq 'COMP' ) {
</TR>
% } elsif ( $cust_main->payby eq 'COMP' ) {
@@
-201,6
+206,14
@@
Billing information
<% $cust_main->invoice_terms || 'Default ('. ( $conf->config('invoice_default_terms') || 'Payable upon receipt' ). ')' %>
</TD>
</TR>
<% $cust_main->invoice_terms || 'Default ('. ( $conf->config('invoice_default_terms') || 'Payable upon receipt' ). ')' %>
</TD>
</TR>
+<TR>
+ <TD ALIGN="right">Credit limit</TD>
+ <TD BGCOLOR="#ffffff">
+ <% length($cust_main->credit_limit) ?
+ $money_char.sprintf("%.2f", $cust_main->credit_limit) :
+ 'Unlimited' %>
+ </TD>
+</TR>
% if ( $conf->exists('voip-cust_cdr_spools') ) {
<TR>
% if ( $conf->exists('voip-cust_cdr_spools') ) {
<TR>
@@
-216,6
+229,13
@@
Billing information
</TR>
% }
</TR>
% }
+% if ( $conf->exists('voip-cust_email_csv_cdr') ) {
+ <TR>
+ <TD ALIGN="right">Email CDRs as CSV</TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->email_csv_cdr ? 'yes' : 'no' %></TD>
+ </TR>
+% }
+
% if ( $show_term || $cust_main->cdr_termination_percentage ) {
<TR>
<TD ALIGN="right">CDR termination settlement</TD>
% if ( $show_term || $cust_main->cdr_termination_percentage ) {
<TR>
<TD ALIGN="right">CDR termination settlement</TD>