[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.67,1.68
Ivan,,,
ivan at wavetail.420.am
Sun Oct 23 18:15:56 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv6443/FS/FS/part_pkg
Modified Files:
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.67
retrieving revision 1.68
diff -u -w -d -r1.67 -r1.68
--- flat.pm 8 Sep 2011 22:09:56 -0000 1.67
+++ flat.pm 24 Oct 2011 01:15:53 -0000 1.68
@@ -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