From fba0d3390b1d53199777735ea0366b450aa2576b Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 16 Apr 2008 20:34:41 +0000 Subject: fix tax class on package def edit --- httemplate/edit/part_bill_event.cgi | 11 ++++------- httemplate/edit/part_pkg.cgi | 2 +- httemplate/edit/quick-charge.html | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/part_bill_event.cgi b/httemplate/edit/part_bill_event.cgi index 322ff688e..6dd92c0fc 100755 --- a/httemplate/edit/part_bill_event.cgi +++ b/httemplate/edit/part_bill_event.cgi @@ -25,13 +25,8 @@ Invoice Event #<% $hashref->{eventpart} ? $hashref->{eventpart} : "(NEW)" %> customers @@ -109,11 +104,13 @@ Invoice Event #<% $hashref->{eventpart} ? $hashref->{eventpart} : "(NEW)" %> %if ( $conf->exists('enable_taxclasses') ) { % $late_taxclass = % '
Taxclass '. -% include('/elements/select-taxclass.html', '%%%late_taxclass%%%', +% include('/elements/select-taxclass.html', +% 'curr_value' => '%%%late_taxclass%%%', % 'name' => 'late_taxclass' ); % $late_percent_taxclass = % '
Taxclass '. -% include('/elements/select-taxclass.html', '%%%late_percent_taxclass%%%', +% include('/elements/select-taxclass.html', +% 'curr_value' => '%%%late_percent_taxclass%%%', % 'name' => 'late_percent_taxclass' ); %} % diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 55d1d0ebf..39c0ac3c1 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -75,7 +75,7 @@ {type=>'justtitle', value=>'Taxation' }, {field=>'setuptax', type=>'checkbox', value=>'Y'}, {field=>'recurtax', type=>'checkbox', value=>'Y'}, - {field=>'classnum', type=>'select-taxclass' }, + {field=>'taxclass', type=>'select-taxclass' }, {field=>'taxproductnum', type=>'select-taxproduct' }, { type => 'tablebreak-tr-title', diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 95ec70c54..2dcbe5169 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -82,8 +82,8 @@ function validate_quick_charge () { $ -<% include('/elements/tr-select-pkg_class.html', '') %> -<% include('/elements/tr-select-taxclass.html') %> +<% include('/elements/tr-select-pkg_class.html', 'curr_value' => $cgi->param('classnum') ) %> +<% include('/elements/tr-select-taxclass.html', 'curr_value' => $cgi->param('taxclass') ) %> Description: -- cgit v1.2.1