From 761449917d3d1d7b3a2206785e702246b8b5625e Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Fri, 24 Jan 2014 18:34:38 -0800 Subject: select a date when importing credits, RT#27087 --- httemplate/misc/process/cust_credit-import.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'httemplate/misc/process') 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; -- cgit v1.2.1