[freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.53.2.10, 1.53.2.11
Ivan,,,
ivan at wavetail.420.am
Sun Oct 23 18:16:08 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv6686/FS/FS/part_pkg
Modified Files:
Tag: FREESIDE_2_1_BRANCH
flat.pm
Log Message:
fix discounts not appearing for one-time charge packages, RT#13654
Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.53.2.10
retrieving revision 1.53.2.11
diff -u -w -d -r1.53.2.10 -r1.53.2.11
--- flat.pm 8 Sep 2011 22:09:57 -0000 1.53.2.10
+++ flat.pm 24 Oct 2011 01:16:06 -0000 1.53.2.11
@@ -197,11 +197,7 @@
sub can_start_date { ! shift->option('start_1st', 1) }
-#XXX discounts only on recurring fees for now (no setup/one-time or usage)
-sub can_discount {
- my $self = shift;
- $self->freq =~ /^\d+$/ && $self->freq > 0;
-}
+sub can_discount { 1; }
sub usage_valuehash {
my $self = shift;
More information about the freeside-commits
mailing list