[freeside-commits] freeside/FS/FS/part_pkg flat.pm, 1.65.2.2, 1.65.2.3
Ivan,,,
ivan at wavetail.420.am
Sun Oct 23 18:16:02 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv6577/FS/FS/part_pkg
Modified Files:
Tag: FREESIDE_2_3_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.65.2.2
retrieving revision 1.65.2.3
diff -u -w -d -r1.65.2.2 -r1.65.2.3
--- flat.pm 8 Sep 2011 22:09:57 -0000 1.65.2.2
+++ flat.pm 24 Oct 2011 01:15:59 -0000 1.65.2.3
@@ -220,11 +220,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 recur_temporality {
my $self = shift;
More information about the freeside-commits
mailing list