diff options
author | ivan <ivan> | 2006-08-13 10:25:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-08-13 10:25:58 +0000 |
commit | 8e3dfb380406e145494a5fffa7a0e4aab7b38253 (patch) | |
tree | b810048e9a0ccd6976d3927da9224a956084e1ce /httemplate/view/cust_main/billing.html | |
parent | a2bddcaabfdaf11d4b726b21af7f6ffc13c458d3 (diff) |
customer view work:
DONE 1. add status and balance to top
DONE 2. add some sort of oldest date thing so the history doesn't get too
big (# years and a link to "show older")
3. make the rest of the action links into js popups? maybe later,
weird IENess when closing em
DONE (finished) - so revert out or finish/commit the Enter check payment one
- Process page can wait until another day.. it should be more of an *action*
DONE 4. Ticket list config knobs for wtxs (grid it too)
DONE 5. grid the package list
Diffstat (limited to 'httemplate/view/cust_main/billing.html')
-rw-r--r-- | httemplate/view/cust_main/billing.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 895814cc2..191d3092f 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -1,12 +1,24 @@ <% my( $cust_main ) = @_; my @invoicing_list = $cust_main->invoicing_list; + my $conf = new FS::Conf; + my $money_char = $conf->config('money_char') || '$'; %> Billing information (<A HREF="<%= $p %>misc/bill.cgi?<%= $cust_main->custnum %>">Bill now</A>) <%= ntable("#cccccc") %><TR><TD><%= ntable("#cccccc",2) %> +<% +( my $balance = $cust_main->balance ) + =~ s/^(\-?)(.*)$/<FONT SIZE=+1>$1<\/FONT>$money_char$2/; +%> + +<TR> + <TD ALIGN="right">Balance due</TD> + <TD BGCOLOR="#ffffff"><B><%= $balance %></B></TD> +</TR> + <TR> <TD ALIGN="right">Billing type</TD> <TD BGCOLOR="#ffffff"> @@ -159,7 +171,7 @@ if ( $date =~ /^(\d{4})-(\d{1,2})-\d{1,2}$/ ) { #PostgreSQL date format <%= join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || 'no' %> </TD> </TR> -<% my $conf = new FS::Conf; if ( $conf->exists('voip-cust_cdr_spools') ) { %> +<% if ( $conf->exists('voip-cust_cdr_spools') ) { %> <TR> <TD ALIGN="right">Spool CDRs</TD> <TD BGCOLOR="#ffffff"><%= $cust_main->spool_cdr ? 'yes' : 'no' %></TD> |