<%= header('Batch Customer Import') %>
Import a CSV file containing customer records.

Default file format is CSV, with the following field order: cust_pkg.setup, dayphone, first, last, address1, address2, city, state, zip, comments

<% #false laziness with edit/cust_main.cgi my @agents = qsearch( 'agent', {} ); die "No agents created!" unless @agents; my $agentnum = $agents[0]->agentnum; #default to first if ( scalar(@agents) == 1 ) { %> <% } else { %>

Agent

<% } %> <% my @referrals = qsearch('part_referral',{}); die "No advertising sources created!" unless @referrals; my $refnum = $referrals[0]->refnum; #default to first if ( scalar(@referrals) == 1 ) { %> <% } else { %>

Advertising source

<% } %> First package:

CSV Filename: