Uploaded files can be CSV (comma-separated value) files or Excel spreadsheets. The file should have a .CSV or .XLS extension.
Default format has the following field order: state, number, name Bulk format has the following field order: state, number, rate center, rate_center_abbrev
Field information:
state: Two-letter state code, i.e. "CA"
number: Phone number
name: optional, rate center
rate center: rate center (required)
rate_center_abbrev: rate center abbreviation
<% 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+$/;
die 'invalid ordernum'
unless (!$ordernum || qsearchs('did_order', { 'ordernum' => $ordernum }));
my $format = 'default';
$format = 'bulk' if $ordernum;
my $availbatch =
time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
%init>