<TD ALIGN="right">Status: </TD>
<TD>
<SELECT NAME="freesidestatus">
- <OPTION VALUE="">(all)
- <OPTION VALUE="NULL">unprocessed
- <OPTION VALUE="done">processed
+ <OPTION VALUE="">(all)</OPTION>
+ <OPTION VALUE="NULL">unprocessed</OPTION>
+%# <OPTION VALUE="processing-tiered">processing</OPTION>
+ <OPTION VALUE="rated">prerated
+ <OPTION VALUE="no-charge">processed (included)</OPTION>
+ <OPTION VALUE="done">processed (billed)</OPTION>
+ <OPTION VALUE="skipped">skipped</OPTION>
+ <OPTION VALUE="failed">failed</OPTION>
</SELECT>
</TD>
</TR>
% }
% #}
+ <% include('/elements/tr-select-table.html',
+ field => 'cdrtypenum',
+ label => 'CDR Type',
+ table => 'cdr_type',
+ name_col => 'cdrtypename',
+ disable_empty => 1,
+ pre_options => [ '', 'all',
+ 'none', 'none' ] )
+ %>
+
<% include ( '/elements/tr-input-beginning_ending.html' ) %>
<TR>
<TD><TEXTAREA NAME="acctid"></TEXTAREA></TD>
</TR>
+ <TR>
+ <TD ALIGN="right">Acct Code (one per-line):</TD>
+ <TD><TEXTAREA NAME="accountcode"></TEXTAREA></TD>
+ </TR>
+
<TR>
<TH CLASS="background" COLSPAN=2> </TH>
</TR>
my @fields = fields('cdr');
my $labels = FS::cdr->table_info->{'fields'};
+my $conf = new FS::Conf;
+my $default_phone_countrycode =
+ $conf->config('default_phone_countrycode') || '1';
+
#XXX config
my @show_default = qw(
calldate clid src dst dcontext charged_party
});
die "Customer not found!" unless $cust_main;
- #historical?
+ #historical packages? It would help, it was still usage, it happened
foreach my $cust_pkg ( $cust_main->ncancelled_pkgs ) {
my @voip_pkgs =
my @numbers = map {
my $number = $_->phonenum;
$number = $_->countrycode. $number
- unless $_->countrycode eq '1';
+ unless $_->countrycode eq $default_phone_countrycode;
$number;
}
@svc_phone;