X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Ftax-import.cgi;h=9581a797544387f11356acca8e6c639f51933659;hb=c22d84e565ab16db142395dce2e8621624eff140;hp=1f60dbe002716534637d21dfe23f9398df77e201;hpb=4104f4e3d1b387296b16b4a035b4b7f42e0c5977;p=freeside.git
diff --git a/httemplate/misc/tax-import.cgi b/httemplate/misc/tax-import.cgi
index 1f60dbe00..9581a7975 100644
--- a/httemplate/misc/tax-import.cgi
+++ b/httemplate/misc/tax-import.cgi
@@ -1,91 +1,95 @@
-<% include("/elements/header.html",'Batch Tax Rate Import') %>
+<& /elements/header.html,'Batch Tax Rate Import' &>
Import a CSV file set containing tax rate records.
-
-
-
-
-
-<%$req%> Required fields
-
-
-Field information:
-
-
-
- - refnum: Advertising source number - where a customer heard about your service. Configuration -> Miscellaneous -> View/Edit advertising sources. This field has special treatment upon import: If a string is passed instead
-of an integer, the string is searched for and if necessary auto-created in the
-advertising source table.
-
-
- payinfo: Credit card number, or leave this, paycvv and paydate blank for email/paper invoicing.
-
-
- paycvv: CVV2 number (three digits on the back of the credit card)
-
-
- paydate: Credit card expiration date, MM/YYYY or MM/YY (M/YY and M/YYYY are also accepted).
-
-
- invoicing_list: Email address for invoices, or POST for postal invoices.
-
-
- pkgpart: Package definition. Configuration -> Provisioning, services and packages -> View/Edit package definitions
-
-
- username and _password are required if pkgpart is specified.
-
-
-
-
<% include('/elements/footer.html') %>
-
-<%once>
-
-my $req = qq!*!;
-
-%once>
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
+my $conf = FS::Conf->new;
+my $data_vendor = $conf->config('tax_data_vendor');
+
+my %vendor_info = (
+ cch => {
+ 'num_files' => 6,
+ 'formats' => [ 'cch' => 'CCH import (CSV)',
+ 'cch-fixed' => 'CCH import (fixed length)' ],
+ 'field' => [ 'geocodefile',
+ 'codefile',
+ 'plus4file',
+ 'zipfile',
+ 'txmatrixfile',
+ 'detailfile',
+ ],
+ 'label' => [ 'geocode filename',
+ 'code filename',
+ 'plus4 filename',
+ 'zip filename',
+ 'txmatrix filename',
+ 'detail filename',
+ ],
+ },
+ billsoft => {
+ 'num_files' => 1,
+ 'formats' => [ 'billsoft-pcode' => 'Billsoft PCodes',
+ 'billsoft-taxclass' => 'Tax classes',
+ 'billsoft-taxproduct' => 'Tax products' ],
+ 'field' => [ 'file' ],
+ 'label' => [ 'Filename' ],
+ },
+);
+
%init>