From: Ivan Kohler Date: Wed, 22 Aug 2012 19:08:49 +0000 (-0700) Subject: add "National ID, plus account and phone services" import format, RT#18946 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=3548286294cdb84cdc50a4877dabb97ec38223ca;p=freeside.git add "National ID, plus account and phone services" import format, RT#18946 --- diff --git a/FS/FS/cust_main/Import.pm b/FS/FS/cust_main/Import.pm index ee14cbaed..19c0d52a4 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 { diff --git a/httemplate/misc/cust_main-import.cgi b/httemplate/misc/cust_main-import.cgi index 74f9b4c89..a5f1d1153 100644 --- a/httemplate/misc/cust_main-import.cgi +++ b/httemplate/misc/cust_main-import.cgi @@ -36,6 +36,7 @@ Import a file containing customer records.