+% if ( $conf->exists('voip-cust_cdr_spools') ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Spool CDRs') |h %></TH>
+ <TD><% $cust_main->spool_cdr ? $yes : $no %></TD>
+ </TR>
+% }
+
+% if ( $conf->exists('voip-cust_cdr_squelch') ) {
+ <TR>
+ <TH ALIGN="right"><% mt($conf->exists('voip-cdr_email') ? 'Print CDRs' : 'Show CDRs') |h %></TH>
+ <TD><% $cust_main->squelch_cdr ? $no : $yes %></TD>
+ </TR>
+% }
+
+% if ( $conf->exists('voip-cust_accountcode_cdr') ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Breakdown CDRs by accountcode') |h %></TH>
+ <TD><% $cust_main->accountcode_cdr ? $yes : $no %></TD>
+ </TR>
+% }
+
+% if ( my $attach = $conf->config('voip-cdr_email_attach') ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Email CDRs as '.uc($attach)) |h %></TH>
+ <TD><% $cust_main->email_csv_cdr ? $yes : $no %></TD>
+ </TR>
+% }
+
+% if ( $show_term || $cust_main->cdr_termination_percentage ) {
+ <TR>
+ <TH ALIGN="right"><% mt('CDR termination settlement') |h %></TH>
+ <TD><% $cust_main->cdr_termination_percentage %><% $cust_main->cdr_termination_percentage =~ /\d/ ? '%' : '' %></TD>
+ </TR>
+% }
+
+% if ( $cust_main->currency ) {
+ <TR>
+ <TH ALIGN="right"><% mt('Invoicing currency') |h %></TH>
+ <TD><% $cust_main->currency. ': '. code2currency($cust_main->currency) %></TD>
+ </TR>
+% }
+
+% if ( $cust_main->locale ) {
+% my %locale_info = FS::Locales->locale_info($cust_main->locale);
+ <TR>
+ <TH ALIGN="right"><% mt('Invoicing locale') |h %></TH>
+ <TD><% $locale_info{name} . " (" . $locale_info{country} .")" %></TD>
+ </TR>
+% }
+
+
+</TABLE>
+<%init>
+
+my( $cust_main ) = @_;
+my @invoicing_list = $cust_main->invoicing_list_emailonly;
+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];