summaryrefslogtreecommitdiff
path: root/httemplate/misc/cust_main-import_charges.cgi
diff options
context:
space:
mode:
authorivan <ivan>2008-01-13 21:14:32 +0000
committerivan <ivan>2008-01-13 21:14:32 +0000
commit97e6cec67c0c99ce1b6f0667a09f1e009100189d (patch)
tree1d43c279a429c8284611e98e327a6049e971192d /httemplate/misc/cust_main-import_charges.cgi
parentc223e0957b194e24dccbda5bbc29841385cc0961 (diff)
ACLs
Diffstat (limited to 'httemplate/misc/cust_main-import_charges.cgi')
-rw-r--r--httemplate/misc/cust_main-import_charges.cgi22
1 files changed, 15 insertions, 7 deletions
diff --git a/httemplate/misc/cust_main-import_charges.cgi b/httemplate/misc/cust_main-import_charges.cgi
index cd4441e0b..3801929e8 100644
--- a/httemplate/misc/cust_main-import_charges.cgi
+++ b/httemplate/misc/cust_main-import_charges.cgi
@@ -1,14 +1,22 @@
-<!-- mason kludge -->
-<% include("/elements/header.html",'Batch Customer Charge') %>
+<% include('/elements/header.html', 'Batch Customer Charge') %>
+
<FORM ACTION="process/cust_main-import_charges.cgi" METHOD="post" ENCTYPE="multipart/form-data">
+
Import a CSV file containing customer charges.<BR><BR>
Default file format is CSV, with the following field order: <i>custnum, amount, description</i><BR><BR>
If <i>amount</i> is negative, a credit will be applied instead.<BR><BR>
<BR><BR>
- CSV Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
- <INPUT TYPE="submit" VALUE="Import">
- </FORM>
- </BODY>
-<HTML>
+CSV Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
+<INPUT TYPE="submit" VALUE="Import">
+
+</FORM>
+
+<% include('/elements/footer.html') %>
+
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Import');
+</%init>