X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-taxproduct.html;h=5feb71d800065b05cb1b04baac82d4d7d36dab43;hb=8eb6542c022ac84b125416f3fb0828b278ba600a;hp=37a428960b656c898d33eaa0d11d0babec4887f7;hpb=669bd6b315633c99ac61441198c2c4e45401c36b;p=freeside.git diff --git a/httemplate/elements/select-taxproduct.html b/httemplate/elements/select-taxproduct.html index 37a428960..5feb71d80 100644 --- a/httemplate/elements/select-taxproduct.html +++ b/httemplate/elements/select-taxproduct.html @@ -8,7 +8,7 @@ TYPE = "text" VALUE = "<% $description %>" SIZE = "12" - 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;"><% $opt{'postfix'} %> + onClick = "<% $onclick %>"><% $opt{'postfix'} %> <%init> my %opt = @_; @@ -23,4 +23,9 @@ unless ( $description || ! $value ) { if $part_pkg_taxproduct; } +my $conf = FS::Conf->new; +my $vendor = lc($conf->config('tax_data_vendor')); +my $onclick = $opt{onclick} || + "overlib( OLiframeContent('${p}/browse/part_pkg_taxproduct/$vendor.html?_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;"; +