projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 74693 - Added Bulk edit of rates only
[freeside.git]
/
httemplate
/
misc
/
cust_main-import_charges.cgi
diff --git
a/httemplate/misc/cust_main-import_charges.cgi
b/httemplate/misc/cust_main-import_charges.cgi
index
4eacce1
..
215cc4c
100644
(file)
--- a/
httemplate/misc/cust_main-import_charges.cgi
+++ b/
httemplate/misc/cust_main-import_charges.cgi
@@
-28,9
+28,9
@@
Import a CSV file containing customer charges.
<TH ALIGN="right">Format</TH>
<TD>
<SELECT NAME="format">
<TH ALIGN="right">Format</TH>
<TD>
<SELECT NAME="format">
- <OPTION VALUE="simple">Simple
- <OPTION VALUE="ooma">Ooma
-<!-- <OPTION VALUE="extended" SELECTED>Extended -->
+% foreach my $format ( keys %formats ) {
+ <OPTION VALUE="<% $format %>"><% $formats{$format} %></OPTION>
+% }
</SELECT>
</TD>
</TR>
</SELECT>
</TD>
</TR>
@@
-94,6
+94,8
@@
Field information:
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
+ tie my %formats, 'Tie::IxHash', FS::cust_main::Import_Charges->import_formats;
+
my $custbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
</%init>
my $custbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
</%init>