X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fmeta-import.cgi;h=8c158bd14224aba1615c4d9d44529c3ac45c9db6;hp=ebd2a7e2fc6303819e9c89f9eee5259b847117bb;hb=79c8be3bd0c5db42794b36bf5b5dd25addba67cb;hpb=6addb511875324241cb002b2fe96225c066d0ddc diff --git a/httemplate/misc/meta-import.cgi b/httemplate/misc/meta-import.cgi index ebd2a7e2f..8c158bd14 100644 --- a/httemplate/misc/meta-import.cgi +++ b/httemplate/misc/meta-import.cgi @@ -1,52 +1,79 @@ - -<%= header('Import') %> -
-Import a CSV file containing customer records (zip tar etc).

+<% include('/elements/header.html', 'Import') %> -##no##Default file format is CSV, with the following field order: cust_pkg.setup, dayphone, first, last, address1, address2, city, state, zip, comments

+ +Import data from a DBI data source

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

Advertising source

-<% } %> +% } + First package:

- CSV (zip, tar etc) Filename:

- -
- - + + + + + + + + + + + + + +
DBI data source:
DBI username:
DBI password:
+ + + + +<% include('/elements/footer.html') %> + +<%init> + +#there's no ACL for this... haven't used in ages +die 'meta-import not enabled; remove this if you want to use it'; +