summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main/Import.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-08-22 12:08:44 -0700
committerIvan Kohler <ivan@freeside.biz>2012-08-22 12:08:44 -0700
commit03b8791b0253e3fd66a6eae75ff54bdd7b51db9d (patch)
tree6814851d7de05fa5d32fdca2bdcf102c18346c70 /FS/FS/cust_main/Import.pm
parentf88c4a7668591d51e6e923938721010fd0f2fa59 (diff)
add "National ID, plus account and phone services" import format, RT#18946
Diffstat (limited to 'FS/FS/cust_main/Import.pm')
-rw-r--r--FS/FS/cust_main/Import.pm19
1 files changed, 17 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Import.pm b/FS/FS/cust_main/Import.pm
index ee14cba..19c0d52 100644
--- a/FS/FS/cust_main/Import.pm
+++ b/FS/FS/cust_main/Import.pm
@@ -210,8 +210,23 @@ sub batch_import {
cust_pkg.pkgpart cust_pkg.bill
svc_acct.username svc_acct._password
);
- push @fields, map "svc_phone.$_", qw(countrycode phonenum sip_password pin);
- push @fields, map "svc_hardware.$_", qw(typenum ip_addr hw_addr serial);
+ push @fields, map "svc_phone.$_", qw(countrycode phonenum sip_password pin);
+ push @fields, map "svc_hardware.$_", qw(typenum ip_addr hw_addr serial);
+
+ $payby = 'BILL';
+ } elsif ( $format eq 'national_id-acct_phone') {
+ @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
+ national_id
+ payinfo paycvv paydate
+ invoicing_list
+ cust_pkg.pkgpart cust_pkg.bill
+ svc_acct.username svc_acct._password
+ );
+ push @fields, map "svc_phone.$_", qw(countrycode phonenum sip_password pin);
$payby = 'BILL';
} else {