optimize CDR rating after timed rate perf regression, RT#15739
[freeside.git] / httemplate / misc / tax-import.cgi
index 15f09d5..25414b2 100644 (file)
@@ -3,14 +3,14 @@
 Import a CSV file set containing tax rate records.
 <BR><BR>
 
-<% include( '/elements/form-file_upload.html',
-              'name'      => 'TaxRateUpload',
-              'action'    => 'process/tax-import.cgi', 
-              'num_files' => 4,
-              'fields'    => [ 'format', ],
-              'message'   => 'Tax rates imported',
-          )
-%>
+<& /elements/form-file_upload.html,
+     'name'      => 'TaxRateUpload',
+     'action'    => 'process/tax-import.cgi', 
+     'num_files' => 6,
+     'fields'    => [ 'format', 'reload' ],
+     'message'   => 'Tax rates imported',
+     'onsubmit'  => "document.TaxRateUpload.submitButton.disabled=true;",
+&>
 
 <% &ntable("#cccccc", 2) %>
 
@@ -18,22 +18,35 @@ Import a CSV file set containing tax rate records.
     <TH ALIGN="right">Format</TH>
     <TD>
       <SELECT NAME="format">
-        <OPTION VALUE="cch-update" SELECTED>CCH update
-        <OPTION VALUE="cch">CCH initial import
+        <!-- <OPTION VALUE="cch-update" SELECTED>CCH update (CSV) -->
+        <OPTION VALUE="cch">CCH import (CSV)
+        <!-- <OPTION VALUE="cch-fixed-update">CCH update (fixed length) -->
+        <OPTION VALUE="cch-fixed">CCH import (fixed length)
       </SELECT>
     </TD>
   </TR>
 
+  <TR>
+    <TH ALIGN="right">Replace existing data from this vendor</TH>
+    <TD>
+      <INPUT NAME="reload" TYPE="checkbox" VALUE="1" CHECKED>
+    </TD>
+  </TR>
+
   <% include( '/elements/file-upload.html',
-                'field'    => [ 'codefile',
+                'field'    => [ 'geocodefile',
+                                'codefile',
                                 'plus4file',
-                                'txmatrix',
-                                'detail',
+                                'zipfile',
+                                'txmatrixfile',
+                                'detailfile',
                               ],
-                'label'    => [ 'code CSV filename',
-                                'plus4 CSV filename',
-                                'txmatrix CSV filename',
-                                'detail CSV filename',
+                'label'    => [ 'geocode filename',
+                                'code filename',
+                                'plus4 filename',
+                                'zip filename',
+                                'txmatrix filename',
+                                'detail filename',
                               ],
                 'debug'    => 0,
             )
@@ -41,9 +54,10 @@ Import a CSV file set containing tax rate records.
 
   <TR>
     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
-      <INPUT TYPE    = "submit"
-             VALUE   = "Import CSV files"
-             onClick = "document.TaxRateUpload.submit.disabled=true;"
+      <INPUT TYPE  = "submit"
+             NAME  = "submitButton"
+             ID    = "submitButton"
+             VALUE = "Import CSV files"
       >
     </TD>
   </TR>