summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-input-pkg-quantity.html
blob: 7ade573990aef82009e0541d8edcf236606d44bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% if ( FS::Conf->new->exists('invoice-unitprice') or $curr_value > 1 ) {
  <TR>
    <TH ALIGN="right"><% mt('Quantity') |h %>
    </TH>
    <TD>
      <INPUT TYPE="text" NAME="quantity" SIZE=4 VALUE="<% $curr_value |h %>">
    </TD>
  </TR>
% } else {
  <INPUT TYPE="hidden" NAME="quantity" VALUE="1">
% }
<%init>
my %opt = @_;
my $curr_value = $cgi->param('quantity') || $opt{'curr_value'} || 1;
</%init>