diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-10-13 10:10:40 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-10-13 10:10:40 -0700 |
| commit | 2b2dd969f3c18751afc583ad1e836ab8e6f73b5d (patch) | |
| tree | 72ad19092f9d3a5118add9a55067b8a97c168f46 /httemplate/elements/cust_pkg_usageprice.html | |
| parent | d31d59c63c8f4dfd52ca19a02ffcf32fcf49f497 (diff) | |
| parent | cd468ecb9a321ca96254b7204f6dc193b11cd903 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/elements/cust_pkg_usageprice.html')
| -rw-r--r-- | httemplate/elements/cust_pkg_usageprice.html | 9 |
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; |
