[freeside-commits] freeside/httemplate/view/cust_main/packages status.html, 1.10, 1.11
Ivan,,,
ivan at wavetail.420.am
Thu Feb 4 18:39:33 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages
In directory wavetail.420.am:/tmp/cvs-serv16400/httemplate/view/cust_main/packages
Modified Files:
status.html
Log Message:
discounts, RT#6679
Index: status.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/status.html,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- status.html 30 Jan 2010 23:00:25 -0000 1.10
+++ status.html 5 Feb 2010 02:39:31 -0000 1.11
@@ -300,9 +300,11 @@
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?'.
More information about the freeside-commits
mailing list