diff options
author | cvs2git <cvs2git> | 2008-03-16 19:58:34 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2008-03-16 19:58:34 +0000 |
commit | eb061f5119325e666f0dff40d4089e5c1df58e17 (patch) | |
tree | d55e8fef5aca62eb13bbc8ad20dbdf941c3bd266 /httemplate/edit/cust_main_county.html | |
parent | 3a17b276638200475d54201fa62566b7440e819a (diff) |
This commit was manufactured by cvs2svn to create tag 'TRIXBOX_2_6'.TRIXBOX_2_6
Diffstat (limited to 'httemplate/edit/cust_main_county.html')
-rw-r--r-- | httemplate/edit/cust_main_county.html | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/httemplate/edit/cust_main_county.html b/httemplate/edit/cust_main_county.html deleted file mode 100644 index 510839d71..000000000 --- a/httemplate/edit/cust_main_county.html +++ /dev/null @@ -1,62 +0,0 @@ -<% include('elements/edit.html', - 'popup' => 1, - 'name' => 'Tax rate', #Edit tax rate - 'table' => 'cust_main_county', - 'labels' => { 'taxnum' => 'Tax', - 'country' => 'Country', - 'state' => 'State', - 'county' => 'County', - 'taxclass' => 'Tax class', - 'taxname' => 'Tax name', - 'tax' => 'Tax rate', - 'setuptax' => 'This tax not applicable to setup fees', - 'recurtax' => 'This tax not applicable to recurring fees', - 'exempt_amount' => 'Monthly exemption per customer ($25 "Texas tax")', - }, - 'fields' => \@fields, - ) -%> -<%once> - -my $conf = new FS::Conf; - -</%once> - -<%init> - -die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); - -my $taxnum; -if ( $cgi->param('error') ) { - $cgi->param('taxnum') =~ /^(\d+)$/ or die 'error, but no taxnum'; - $taxnum = $1; -} else { - my($query) = $cgi->keywords; - $query =~ /^(\d+)$/ or die 'no taxnum'; - $taxnum = $1; -} - -my $cust_main_county = qsearchs('cust_main_county', { 'taxnum' => $taxnum }) - or die "unknown taxnum $1"; - -my @fields = ( - { field=>'country', type=>'fixed-country', }, - { field=>'state', type=>'fixed-state', }, - { field=>'county', type=>'fixed', }, -); - -push @fields, { field=>'taxclass', type=>'fixed', } - if $conf->exists('enable_taxclasses'); - -push @fields, - 'taxname', - { field=>'tax', type=>'percentage', }, - - { type=>'tablebreak-tr-title', value=>'Exemptions' }, - { field=>'setuptax', type=>'checkbox', value=>'Y', }, - { field=>'recurtax', type=>'checkbox', value=>'Y', }, - { field=>'exempt_amount', type=>'money', }, -; - -</%init> |