diff options
| author | Mark Wells <mark@freeside.biz> | 2013-08-09 13:36:27 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2013-08-09 13:36:27 -0700 |
| commit | 188ea70e3966bb70cf5b112428671473ed9f9580 (patch) | |
| tree | 335a47103432289ffdd87477c076deeacc641e4a /httemplate/elements/tr-input-pkg-quantity.html | |
| parent | 5f25f76ab660040203be626ce62128af021d6185 (diff) | |
preserve quantity when changing package type/location, #24259
Diffstat (limited to 'httemplate/elements/tr-input-pkg-quantity.html')
| -rw-r--r-- | httemplate/elements/tr-input-pkg-quantity.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/elements/tr-input-pkg-quantity.html b/httemplate/elements/tr-input-pkg-quantity.html new file mode 100644 index 000000000..7ade57399 --- /dev/null +++ b/httemplate/elements/tr-input-pkg-quantity.html @@ -0,0 +1,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> |
