From: ivan Date: Tue, 25 May 2010 12:41:22 +0000 (+0000) Subject: unfinished rate import X-Git-Tag: root_of_svc_elec_features~222 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=5ff9c3d0c052f84fb896838db512085657493a91 unfinished rate import --- diff --git a/httemplate/misc/process/rate-import.html b/httemplate/misc/process/rate-import.html new file mode 100644 index 000000000..2c641642c --- /dev/null +++ b/httemplate/misc/process/rate-import.html @@ -0,0 +1,9 @@ +<% $server->process %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +my $server = new FS::UI::Web::JSRPC 'FS::rate::process_batch_import', $cgi; + + diff --git a/httemplate/misc/rate-import.html b/httemplate/misc/rate-import.html new file mode 100644 index 000000000..ae8ee695b --- /dev/null +++ b/httemplate/misc/rate-import.html @@ -0,0 +1,76 @@ +<% include("/elements/header.html",'Import Rate Plan') %> + +<% include( '/elements/form-file_upload.html', + 'name' => 'RateImportForm', + 'action ' => 'process/rate-import.html', + 'num_files' => 1, + 'fields' => [ 'ratename' ], + 'message' => 'Rate plan import successful', +# 'url' => $p."browse/rate_detail.cgi?ratenum=$ratenum", #XXX how? + ) +%> + +<% &ntable("#cccccc", 2) %> + + + Rate plan + + + + + + <% include( '/elements/file-upload.html', + 'field' => 'file', + 'label' => 'Filename', + ) + %> + + + + + + + + + + + +
+ + +File format is CSV (comma-separated value), with the following field order: + + +Formatting rules for second field: + + +Have caution when importing prefix data that is mismatched to your current +prefixes. + +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +