From 98ea745e4b55a38ad8b5ba3749c56327d641d65d Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 9 Aug 2013 13:36:43 -0700 Subject: preserve quantity when changing package type/location, #24259 --- httemplate/elements/tr-input-pkg-quantity.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 httemplate/elements/tr-input-pkg-quantity.html (limited to 'httemplate/elements') 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 ) { + + <% mt('Quantity') |h %> + + + + + +% } else { + +% } +<%init> +my %opt = @_; +my $curr_value = $cgi->param('quantity') || $opt{'curr_value'} || 1; + -- cgit v1.2.1