Uploaded files can be CSV (comma-separated value) files or Excel spreadsheets. The file should have a .CSV or .XLS extension.
% if ( $ordernum ) {
Bulk format has the following field order: state, number, rate center, rate_center_abbrev, msa, latanum
% } else {
Default format has the following field order: state, number, name
% }
Field information:
state: Two-letter state code, i.e. "CA"
number: Phone number
% if ( $ordernum ) {
rate center: rate center (required)
rate_center_abbrev: rate center abbreviation
msa: MSA
latanum: LATA #
% } else {
name: optional, rate center
% }
<% include('/elements/footer.html') %>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
my $conf = new FS::Conf;
my $ordernum = $cgi->param('ordernum');
$ordernum = '' unless $ordernum =~ /^\d+$/;
my $vendor_order_id = '';
my $confirmed = '';
my $order = '';
$order = qsearchs('did_order', { 'ordernum' => $ordernum } )
if $ordernum;
die 'invalid ordernum' unless (!$ordernum || $order);
my $format = 'default';
if ( $order ) {
$format = 'bulk';
$confirmed = $order->confirmed;
$vendor_order_id = $order->vendor_order_id;
}
my $availbatch =
time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
my @exports = qsearch('part_export', { 'exporttype' => 'internal_diddb', });
%init>