summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-taxproduct.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select-taxproduct.html')
-rw-r--r--httemplate/elements/select-taxproduct.html28
1 files changed, 0 insertions, 28 deletions
diff --git a/httemplate/elements/select-taxproduct.html b/httemplate/elements/select-taxproduct.html
deleted file mode 100644
index 0f6ef55..0000000
--- a/httemplate/elements/select-taxproduct.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<% $opt{'prefix'} %><INPUT NAME = "<% $name %>"
- ID = "<% $name %>"
- TYPE = "hidden"
- VALUE = "<% $value |h %>"
- >
- <INPUT NAME = "<% $name %>_description"
- ID = "<% $name %>_description"
- TYPE = "text"
- VALUE = "<% $description %>"
- SIZE = "12"
- onClick = "<% $onclick %>"><% $opt{'postfix'} %>
-<%init>
-
-my %opt = @_;
-my $name = $opt{element_name} || $opt{field} || 'taxproductnum';
-my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value};
-my $description = $opt{'taxproduct_description'};
-
-unless ( $description || ! $value ) {
- my $part_pkg_taxproduct =
- qsearchs( 'part_pkg_taxproduct', { 'taxproductnum'=> $value } );
- $description = $part_pkg_taxproduct->description
- if $part_pkg_taxproduct;
-}
-
-my $onclick = $opt{onclick} || "overlib( OLiframeContent('${p}/browse/part_pkg_taxproduct.cgi?_type=select&id=${name}&taxproductnum='+document.getElementById('${name}').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;";
-
-</%init>