summaryrefslogtreecommitdiff
path: root/httemplate/elements/cust_pkg_usageprice.html
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-09-10 21:33:37 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-09-10 21:33:37 -0500
commit8eeac13d3a8b231efd786eca0555087de5dbb17e (patch)
tree6b84175ec9906e27b343e77774b3967419c701a8 /httemplate/elements/cust_pkg_usageprice.html
parentffa5a5ba5f1e75ad5e7545f5c8e303e079014f2f (diff)
RT#33410: Package GB add-ons
Diffstat (limited to 'httemplate/elements/cust_pkg_usageprice.html')
-rw-r--r--httemplate/elements/cust_pkg_usageprice.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/httemplate/elements/cust_pkg_usageprice.html b/httemplate/elements/cust_pkg_usageprice.html
index 729099320..74b7842be 100644
--- a/httemplate/elements/cust_pkg_usageprice.html
+++ b/httemplate/elements/cust_pkg_usageprice.html
@@ -23,15 +23,16 @@
>
% my $info = $part_pkg_usageprice->target_info;
% my $amount = $part_pkg_usageprice->amount / ($info->{multiplier}||1);
- <OPTION VALUE="">Additional <% $info->{label} %>
+ <OPTION VALUE="">Additional <% $info->{label} %></OPTION>
% for (1..100) { #100? arbitrary.
- <OPTION VALUE="<% $_ %>"><%
+% my $selected = ($opt{'curr_quantity'} == $_) ? ' SELECTED' : '';
+ <OPTION VALUE="<% $_ %>"<% $selected %>><%
$money_char. sprintf('%.2f', $_ * $part_pkg_usageprice->price ).
' '.
'for'. #( $part_pkg_usageprice->action eq 'increment' ? 'per' : 'for' ).
' '.
( $_ * $amount ). ' '. $info->{label}
- %>
+ %></OPTION>
% }
</SELECT>
</TD>
@@ -42,8 +43,6 @@
% }
<%init>
-#my $targets = FS::part_pkg_usageprice->targets;
-
my( %opt ) = @_;
my $conf = new FS::Conf;