[freeside-commits] freeside/FS/FS cust_pkg.pm, 1.179.2.27, 1.179.2.28 part_pkg.pm, 1.111.2.8, 1.111.2.9
Ivan,,,
ivan at wavetail.420.am
Wed Aug 10 17:39:02 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv14755/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
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.111.2.8
retrieving revision 1.111.2.9
diff -u -w -d -r1.111.2.8 -r1.111.2.9
--- part_pkg.pm 5 Aug 2011 19:27:01 -0000 1.111.2.8
+++ part_pkg.pm 11 Aug 2011 00:38:59 -0000 1.111.2.9
@@ -798,6 +798,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.179.2.27
retrieving revision 1.179.2.28
diff -u -w -d -r1.179.2.27 -r1.179.2.28
--- cust_pkg.pm 10 Aug 2011 23:43:49 -0000 1.179.2.27
+++ cust_pkg.pm 11 Aug 2011 00:38:59 -0000 1.179.2.28
@@ -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