[freeside-commits] freeside/FS/FS cust_pkg.pm, 1.207, 1.208 part_pkg.pm, 1.124, 1.125
Ivan,,,
ivan at wavetail.420.am
Wed Aug 10 17:38:03 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14582/FS/FS
Modified Files:
cust_pkg.pm part_pkg.pm
Log Message:
hide start date on package order for specific package definitions, RT#13783
Index: part_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg.pm,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -w -d -r1.124 -r1.125
--- part_pkg.pm 5 Aug 2011 19:26:53 -0000 1.124
+++ part_pkg.pm 11 Aug 2011 00:38:01 -0000 1.125
@@ -867,6 +867,8 @@
sub can_discount { 0; }
+sub can_start_date { 1; }
+
sub freqs_href {
# moved to FS::Misc to make this accessible to other packages
# at initialization
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -w -d -r1.207 -r1.208
--- cust_pkg.pm 10 Aug 2011 23:43:43 -0000 1.207
+++ cust_pkg.pm 11 Aug 2011 00:38:01 -0000 1.208
@@ -284,7 +284,7 @@
}
my $free_days = $part_pkg->option('free_days');
- if ( $free_days && $part_pkg->option('delay_setup') ) { #&& !$self->start_date
+ if ( $free_days && $part_pkg->option('delay_setup',1) ) { #&& !$self->start_date
my ($mday,$mon,$year) = (localtime(time) )[3,4,5];
#my $start_date = ($self->start_date || timelocal(0,0,0,$mday,$mon,$year)) + 86400 * $free_days;
my $start_date = timelocal(0,0,0,$mday,$mon,$year) + 86400 * $free_days;
More information about the freeside-commits
mailing list