X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcust_credit-import.html;fp=httemplate%2Fmisc%2Fcust_credit-import.html;h=6de34e3781c4b69bb9b89a22652d9b924dc80b2c;hb=6319221f32300d4c641e2a22d5e0836d58fbd1b3;hp=0000000000000000000000000000000000000000;hpb=964f0dc15597f3abb58a0135ec6c44ed8d022365;p=freeside.git diff --git a/httemplate/misc/cust_credit-import.html b/httemplate/misc/cust_credit-import.html new file mode 100644 index 000000000..6de34e378 --- /dev/null +++ b/httemplate/misc/cust_credit-import.html @@ -0,0 +1,79 @@ +<& /elements/header.html, 'Batch Credit Import' &> + +Import a file containing credits. +

+ +<& /elements/form-file_upload.html, + 'name' => 'CreditImportForm', + 'action' => 'process/cust_credit-import.cgi', + 'num_files' => 1, + 'fields' => [ 'format', 'credbatch' ], + 'message' => 'Credit import successful', + 'url' => $p."search/cust_credit.html?credbatch=$credbatch", + 'onsubmit' => "document.CreditImportForm.submitButton.disabled=true;", +&> + + +<% &ntable("#cccccc", 2) %> + + + + + + + <% include( '/elements/file-upload.html', + 'field' => 'file', + 'label' => 'Filename', + ) + %> + + + + + + + + + + + +
+ +Uploaded files can be CSV (comma-separated value) files or Excel spreadsheets. The file should have a .CSV or .XLS extension. +

+ + Default format has the following field order: custnum, amount, reasonnum, invnum
+

+ +Field information: + +

+ +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +my $credbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); + +