diff options
author | ivan <ivan> | 2010-02-05 02:39:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-02-05 02:39:31 +0000 |
commit | 8a0204b4a129a3c26dcca18ba401b2de26d22d2b (patch) | |
tree | acc110c2e41d74fefa6c038c6b0d414865fb29b2 /httemplate/view | |
parent | 4cacb3fa439b56fc7c9a742b69ec3f6ffd660433 (diff) |
discounts, RT#6679
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_main/order_pkg_link.html | 2 | ||||
-rw-r--r-- | httemplate/view/cust_main/packages/status.html | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/httemplate/view/cust_main/order_pkg_link.html b/httemplate/view/cust_main/order_pkg_link.html index 9a12019ba..0c53f2a59 100644 --- a/httemplate/view/cust_main/order_pkg_link.html +++ b/httemplate/view/cust_main/order_pkg_link.html @@ -6,7 +6,7 @@ 'cust_main' => $cust_main, 'closetext' => 'Close', 'width' => 763, - 'height' => 408, + 'height' => 476, ) %> <%init> diff --git a/httemplate/view/cust_main/packages/status.html b/httemplate/view/cust_main/packages/status.html index c65eb70e9..7b1b53add 100644 --- a/httemplate/view/cust_main/packages/status.html +++ b/httemplate/view/cust_main/packages/status.html @@ -300,9 +300,11 @@ sub pkg_status_row_discount { my $discount = $cust_pkg_discount->discount; my $label = '<B>Discount</B>: '. $discount->description; - $label .= ' ('. ( $discount->months - $cust_pkg_discount->months_used ). - ' months remaining)' - if $discount->months; + if ( $discount->months ) { + my $remaining = $discount->months - $cust_pkg_discount->months_used; + $remaining = sprintf('%.2f', $remaining) if $remaining =~ /\./; + $label .= " ($remaining months remaining)" + } $label .= ' <FONT SIZE="-1">('. '<A HREF="../misc/delete-cust_pkg_discount.html?'. |