X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-taxproduct.html;h=5feb71d800065b05cb1b04baac82d4d7d36dab43;hb=796780078517c26803a7689ccd80931381de23ea;hp=0f6ef55833c22c0ddad11649f67d273083364dd3;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/httemplate/elements/select-taxproduct.html b/httemplate/elements/select-taxproduct.html index 0f6ef5583..5feb71d80 100644 --- a/httemplate/elements/select-taxproduct.html +++ b/httemplate/elements/select-taxproduct.html @@ -23,6 +23,9 @@ unless ( $description || ! $value ) { 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;"; +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;";