X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fbilling.html;h=c8d0c47cd0600e33ab4410b2873844911e332e20;hb=7b125e587a4d1ee0aca692e23ea7897f671855ae;hp=4b2425b333b1b94648cfc3b73fb4cb329b3e839a;hpb=7923b92cdd671e1b13c951af33c11b0ac25dd894;p=freeside.git
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html
index 4b2425b33..c8d0c47cd 100644
--- a/httemplate/view/cust_main/billing.html
+++ b/httemplate/view/cust_main/billing.html
@@ -159,11 +159,18 @@ Billing information
% }
-
+% my @exempt_groups = grep /\S/, $conf->config('tax-cust_exempt-groups');
- Tax exempt |
+ Tax exempt<% @exempt_groups ? ' (all taxes)' : '' %> |
<% $cust_main->tax ? 'yes' : 'no' %> |
+% foreach my $exempt_group ( @exempt_groups ) {
+
+ Tax exempt (<% $exempt_group %> taxes) |
+ <% $cust_main->tax_exemption($exempt_group) ? 'yes' : 'no' %> |
+
+% }
+
% if ( $conf->exists('enable_taxproducts') ) {
Tax location |
@@ -209,6 +216,20 @@ Billing information
% }
+% if ( $conf->exists('voip-cust_email_csv_cdr') ) {
+
+ Email CDRs as CSV |
+ <% $cust_main->email_csv_cdr ? 'yes' : 'no' %> |
+
+% }
+
+% if ( $show_term || $cust_main->cdr_termination_percentage ) {
+
+ CDR termination settlement |
+ <% $cust_main->cdr_termination_percentage %><% $cust_main->cdr_termination_percentage =~ /\d/ ? '%' : '' %> |
+
+% }
+
<%once>
@@ -223,4 +244,10 @@ my @invoicing_list = $cust_main->invoicing_list;
my $conf = new FS::Conf;
my $money_char = $conf->config('money_char') || '$';
+#false laziness w/edit/cust_main/billing.html
+my $term_sql = "SELECT COUNT(*) FROM cust_pkg LEFT JOIN part_pkg USING ( pkgpart ) WHERE custnum = ? AND plan = 'cdr_termination' LIMIT 1";
+my $term_sth = dbh->prepare($term_sql) or die dbh->errstr;
+$term_sth->execute($cust_main->custnum) or die $term_sth->errstr;
+my $show_term = $term_sth->fetchrow_arrayref->[0];
+
%init>