X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcust_main-import.cgi;h=84da38611c6bd02a35f3af089b86ce4b1c1e255d;hb=c5e0b314496e375d84906e68430bd6017980faac;hp=2ad4d95b4112c99cf9147979c0e1284879b31224;hpb=04cbf1d986eabf7fdcc22ff95b95da17e5f4bf63;p=freeside.git diff --git a/httemplate/misc/cust_main-import.cgi b/httemplate/misc/cust_main-import.cgi index 2ad4d95b4..84da38611 100644 --- a/httemplate/misc/cust_main-import.cgi +++ b/httemplate/misc/cust_main-import.cgi @@ -1,24 +1,14 @@ -<%= include("/elements/header.html",'Batch Customer Import') %> - -
+<% include("/elements/header.html",'Batch Customer Import') %> Import a CSV file containing customer records.

- - -Extended file format is CSV, with the following field order: agent_custid, refnum[1], last, first, address1, address2, city, state, zip, country, daytime, night, ship_last, ship_first, ship_address1, ship_address2, ship_city, ship_state, ship_zip, ship_country, payinfo, paycvv, paydate, invoicing_list, pkgpart, username, _password -

- -[1] This field has special treatment upon import: If a string is passed instead -of an integer, the string is searched for and if necessary auto-created in the -target table. -

+ -<%= &ntable("#cccccc") %> +<% &ntable("#cccccc", 2) %> -<%= include('/elements/tr-select-agent.html', '', #$agentnum, +<% include('/elements/tr-select-agent.html', + #'curr_value' => '', #$agentnum, 'label' => "Agent", 'empty_label' => 'Select agent', ) @@ -30,6 +20,7 @@ target table. @@ -38,28 +29,81 @@ target table. CSV filename +% #include('/elements/tr-select-part_referral.html') +% -<% #include('/elements/tr-select-part_referral.html') -%> + + -

-
-<%= include('/elements/footer.html') %> +
+ + + +Extended file format is CSV, with the following field order: agent_custid, refnum<%$req%>, last<%$req%>, first<%$req%>, address1<%$req%>, address2, city<%$req%>, state<%$req%>, zip<%$req%>, country, daytime, night, ship_last, ship_first, ship_address1, ship_address2, ship_city, ship_state, ship_zip, ship_country, payinfo<%$req%>, paycvv, paydate<%$req%>, invoicing_list, pkgpart, username, _password +

+ +Extended plus company file format is CSV, with the following field order: agent_custid, refnum<%$req%>, last<%$req%>, first<%$req%>, company, address1<%$req%>, address2, city<%$req%>, state<%$req%>, zip<%$req%>, country, daytime, night, ship_last, ship_first, ship_company, ship_address1, ship_address2, ship_city, ship_state, ship_zip, ship_country, payinfo<%$req%>, paycvv, paydate<%$req%>, invoicing_list, pkgpart, username, _password +

+ +<%$req%> Required fields +

+ +Field information: + + + +
+ +<% include('/elements/footer.html') %> + +<%once> + +my $req = qq!*!; + + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); +