summaryrefslogtreecommitdiff
path: root/httemplate/misc/process
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-01-24 18:34:38 -0800
committerJeremy Davis <jeremyd@freeside.biz>2014-02-07 13:56:10 -0500
commit4bc3d0f7dacd7a8bc82b86daf4f938d6cf8def5b (patch)
treebeaf12466b7b72bb8b18f821fd18e54f5262463f /httemplate/misc/process
parent2835b0ed9f2d2811d63cf721cf3216f316021f59 (diff)
select a date when importing credits, RT#27087
Diffstat (limited to 'httemplate/misc/process')
-rw-r--r--httemplate/misc/process/cust_credit-import.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/misc/process/cust_credit-import.cgi b/httemplate/misc/process/cust_credit-import.cgi
index 5a5cfe212..4c4d42df2 100644
--- a/httemplate/misc/process/cust_credit-import.cgi
+++ b/httemplate/misc/process/cust_credit-import.cgi
@@ -4,6 +4,11 @@
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
+my %arg = $cgi->param('arg');
+$arg{_date} = parse_datetime( $arg{_date} )
+ if $arg{_date} && $arg{_date} =~ /\D/;
+$cgi->param('arg', %arg );
+
my $server =
new FS::UI::Web::JSRPC 'FS::cust_credit::process_batch_import', $cgi;