X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_pkg_taxproduct.cgi;h=7e0cb81915c97369aa31c515474160a46c392816;hb=01758c90c7d2c2b83569b9138ac9a315f1695a56;hp=3df819715aac30bdd73f6c3d2c527b942d105daf;hpb=6626dc2a13c809092aa539c5a72bc72a0c56afdc;p=freeside.git diff --git a/httemplate/browse/part_pkg_taxproduct.cgi b/httemplate/browse/part_pkg_taxproduct.cgi index 3df819715..7e0cb8191 100755 --- a/httemplate/browse/part_pkg_taxproduct.cgi +++ b/httemplate/browse/part_pkg_taxproduct.cgi @@ -31,6 +31,7 @@ die "access denied" my @menubar; my $title = ''; +my $onclick = 'cClick'; my $data_vendor = ''; if ( $cgi->param('data_vendor') =~ /^(\w+)$/ ) { @@ -54,13 +55,24 @@ my $tax_customer = $1 my $id = $1 if ( $cgi->param('id') =~ /^([ \w]+)$/ ); +$onclick = $1 + if ( $cgi->param('onclick') =~ /^(\w+)$/ ); +$cgi->delete('onclick'); + +my $remove_onclick = <taxproductnum; my $desc = $row->description; "parent.document.getElementById('$id').value = $taxnum;". "parent.document.getElementById('${id}_description').value = '$desc';". - "parent.cClick();"; + "parent.$onclick();"; } if $id; @@ -104,6 +116,7 @@ $cgi->param('tax_group', $tax_group) if $tax_group; $cgi->param('tax_item', $tax_item ) if $tax_item; $cgi->param('tax_provider', $tax_provider ) if $tax_provider; $cgi->param('tax_customer', $tax_customer ) if $tax_customer; +$cgi->param('onclick', $onclick ) if $onclick; my $count_query = "SELECT COUNT(*) FROM part_pkg_taxproduct $extra_sql"; @@ -132,7 +145,10 @@ my @fields = ( my $html_init = ''; -$html_init = '
Current tax product: '. +my $select_link = [ 'javascript:void(0);', sub { ''; } ]; +$html_init = '
(remove) !. + 'Current tax product: '. $selected_part_pkg_taxproduct->description. '


' if $selected_part_pkg_taxproduct; @@ -142,6 +158,7 @@ $html_init .= qq(
+