summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-04-15 11:12:36 -0700
committerIvan Kohler <ivan@freeside.biz>2015-04-15 11:12:36 -0700
commit3912de349e9726339d1a357cfc6b96c329c09e60 (patch)
treee19f0d2625ebfdc37c5d049c06299cdb2a60c177
parent66658ac3b3d67333970a500c842a566cad561321 (diff)
add "All dates" format to package import with contract_end, RT#34397
-rw-r--r--FS/FS/cust_pkg/Import.pm1
-rw-r--r--httemplate/misc/cust_pkg-import.html5
2 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/cust_pkg/Import.pm b/FS/FS/cust_pkg/Import.pm
index 082def0..301930c 100644
--- a/FS/FS/cust_pkg/Import.pm
+++ b/FS/FS/cust_pkg/Import.pm
@@ -100,6 +100,7 @@ sub process_batch_import {
my %formatfields = (
'default' => [],
+ 'all_dates' => [],
'svc_acct' => [qw( username _password domsvc )],
'svc_phone' => [qw( countrycode phonenum sip_password pin )],
'svc_external' => [qw( id title )],
diff --git a/httemplate/misc/cust_pkg-import.html b/httemplate/misc/cust_pkg-import.html
index 1ec5930..c1c1b8b 100644
--- a/httemplate/misc/cust_pkg-import.html
+++ b/httemplate/misc/cust_pkg-import.html
@@ -29,8 +29,8 @@ Import a file containing customer packages.
<SELECT NAME="format">
<OPTION VALUE="default" SELECTED>Default
<OPTION VALUE="default-agent_custid">Default with agent_custid
- <OPTION VALUE="all_dates" SELECTED>All dates
- <OPTION VALUE="all_dates-agent_custid" SELECTED>All dates with agent_custid
+ <OPTION VALUE="all_dates">All dates
+ <OPTION VALUE="all_dates-agent_custid">All dates with agent_custid
<OPTION VALUE="svc_acct">Account service
<OPTION VALUE="svc_acct-agent_custid">Account service with agent_custid
<OPTION VALUE="svc_phone">Phone service
@@ -77,6 +77,7 @@ Uploaded files can be CSV (comma-separated value) files or Excel spreadsheets.
<BR><BR>
<b>All dates with agent_custid</b> format has the following field order: <i>agent_custid<%$req%>, pkgpart<%$req%>, discountnum, order_date, start_date, setup, bill, last_bill, susp, adjourn, resume, cancel, expire, contract_end, dundate</i>
+<BR><BR>
<b>Account service</b> format has the following field order: <i>custnum<%$req%>, pkgpart<%$req%>, discountnum, start_date, setup, bill, last_bill, susp, adjourn, cancel, expire, username, _password, domsvc</i>
<BR><BR>