From: Ivan Kohler Date: Sat, 25 Jan 2014 02:34:38 +0000 (-0800) Subject: select a date when importing credits, RT#27087 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=761449917d3d1d7b3a2206785e702246b8b5625e select a date when importing credits, RT#27087 --- diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 3f8d57c3c..7ae6c97a5 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -1118,7 +1118,7 @@ sub process_batch_import { my $job = shift; my $opt = { 'table' => 'cust_credit', - 'params' => [ 'credbatch' ], + 'params' => [ '_date', 'credbatch' ], 'formats' => { 'simple' => [ 'custnum', 'amount', 'reasonnum', 'invnum' ], }, diff --git a/httemplate/misc/cust_credit-import.html b/httemplate/misc/cust_credit-import.html index 6de34e378..9a63a04c5 100644 --- a/httemplate/misc/cust_credit-import.html +++ b/httemplate/misc/cust_credit-import.html @@ -7,7 +7,7 @@ Import a file containing credits. 'name' => 'CreditImportForm', 'action' => 'process/cust_credit-import.cgi', 'num_files' => 1, - 'fields' => [ 'format', 'credbatch' ], + 'fields' => [ 'format', '_date', 'credbatch' ], 'message' => 'Credit import successful', 'url' => $p."search/cust_credit.html?credbatch=$credbatch", 'onsubmit' => "document.CreditImportForm.submitButton.disabled=true;", @@ -18,6 +18,13 @@ Import a file containing credits. + <& /elements/tr-input-date-field.html, { + 'name' => '_date', + #'value' => '', + 'label' => 'Date', + } + &> +