[freeside-commits] freeside/httemplate/elements tr-select-taxproduct.html, NONE, 1.1 select-taxproduct.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sat Apr 12 19:56:30 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv32161
Added Files:
tr-select-taxproduct.html select-taxproduct.html
Log Message:
add elements for selecting taxproduct
--- NEW FILE: tr-select-taxproduct.html ---
% if ( $conf->exists('enable_taxproducts') ) {
<TR>
<TD COLSPAN="2">
<% include('select-taxproduct.html', @_) %>
</TD>
</TR>
% } else {
<INPUT TYPE="hidden" NAME="taxproductnum" VALUE="<% $opt{taxproductnum} %>">
<INPUT TYPE="hidden" NAME="tax_override" VALUE="<% $opt{tax_override} %>">
% }
<%init>
my $conf = new FS::Conf;
my %opt = @_;
</%init>
--- NEW FILE: select-taxproduct.html ---
<% ntable("#cccccc", 2) %>
<TR>
<TD align="right">Tax product</TD>
<TD>
<INPUT name="part_pkg_taxproduct_taxproductnum" id="taxproductnum" type="hidden" value="<% $opt{'taxproductnum'}%>">
<INPUT name="part_pkg_taxproduct_description" id="taxproductnum_description" type="text" value="<% $opt{taxproduct_description} %>" size="12" onclick="overlib( OLiframeContent('<% $p %>/browse/part_pkg_taxproduct.cgi?_type=select&id=taxproductnum&taxproductnum='+document.getElementById('taxproductnum').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;">
</TD>
</TR>
<TR>
<TD colspan="2" align="right">
<INPUT name="tax_override" id="tax_override" type="hidden" value="<% $opt{tax_override} %>">
<A href="javascript:void(0)" onclick="overlib( OLiframeContent('part_pkg_taxoverride.html?selected='+document.getElementById('tax_override').value, 1100, 600, 'tax_product_popup'), CAPTION, 'Edit product tax overrides', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK); return false;">
<% $opt{tax_override} ? 'Edit tax overrides' : 'Override taxes' %>
</A>
</TD>
</TR>
</TABLE>
<%init>
my %opt = @_;
</%init>
More information about the freeside-commits
mailing list