diff options
author | ivan <ivan> | 2007-11-30 03:24:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-11-30 03:24:40 +0000 |
commit | 671b3cb139ae3928c13220fcb27c892f92de4792 (patch) | |
tree | 8ffb9dc1b491109d45d9456f3bb1d4e3446035c9 | |
parent | 12ce4cf074f058aad67f1d54ae08fa5dee6c0772 (diff) |
add customer import format with company
-rw-r--r-- | FS/FS/cust_main.pm | 12 | ||||
-rw-r--r-- | httemplate/misc/cust_main-import.cgi | 9 |
2 files changed, 19 insertions, 2 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 74d7bcbfb..9300f2c12 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5567,6 +5567,18 @@ sub batch_import { svc_acct.username svc_acct._password ); $payby = 'BILL'; + } elsif ( $format eq 'extended-plus_company' ) { + @fields = qw( agent_custid refnum + last first company address1 address2 city state zip country + daytime night + ship_last ship_first ship_company ship_address1 ship_address2 + ship_city ship_state ship_zip ship_country + payinfo paycvv paydate + invoicing_list + cust_pkg.pkgpart + svc_acct.username svc_acct._password + ); + $payby = 'BILL'; } else { die "unknown format $format"; } diff --git a/httemplate/misc/cust_main-import.cgi b/httemplate/misc/cust_main-import.cgi index cf0bac78e..b710ca8f0 100644 --- a/httemplate/misc/cust_main-import.cgi +++ b/httemplate/misc/cust_main-import.cgi @@ -20,6 +20,7 @@ Import a CSV file containing customer records. <SELECT NAME="format"> <!-- <OPTION VALUE="simple">Simple --> <OPTION VALUE="extended" SELECTED>Extended + <OPTION VALUE="extended-plus_company">Extended plus company </SELECT> </TD> </TR> @@ -36,6 +37,7 @@ Import a CSV file containing customer records. <TR> <TH>First package</TH> <TD> + This needs to be agent-virtualized if it gets used! <SELECT NAME="pkgpart"><OPTION VALUE="">(none)</OPTION> % foreach my $part_pkg ( qsearch('part_pkg',{'disabled'=>'' }) ) { @@ -58,7 +60,10 @@ Import a CSV file containing customer records. <!-- Simple file format is CSV, with the following field order: <i>cust_pkg.setup, dayphone, first, last, address1, address2, city, state, zip, comments</i> <BR><BR> --> -Extended file format is CSV, with the following field order: <i>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</i> +<b>Extended</b> file format is CSV, with the following field order: <i>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</i> +<BR><BR> + +<b>Extended plus company</b> file format is CSV, with the following field order: <i>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</i> <BR><BR> <%$req%> Required fields @@ -78,7 +83,7 @@ advertising source table. <li><i>paycvv</i>: CVV2 number (three digits on the back of the credit card) - <li><i>paydate</i>: Credit card expiration date. + <li><i>paydate</i>: Credit card expiration date, MM/YYYY or MM/YY (M/YY and M/YYYY are also accepted). <li><i>invoicing_list</i>: Email address for invoices, or POST for postal invoices. |