[freeside-commits] freeside/FS/FS cust_main.pm,1.448,1.449

Ivan,,, ivan at wavetail.420.am
Thu Aug 6 17:39:16 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12311/FS/FS

Modified Files:
	cust_main.pm 
Log Message:
don't start recurring billing when a start date hasn't been reached yet either... and since that works, add the start date to new package order, RT#5347

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.448
retrieving revision 1.449
diff -u -d -r1.448 -r1.449
--- cust_main.pm	30 Jul 2009 09:19:20 -0000	1.448
+++ cust_main.pm	7 Aug 2009 00:39:13 -0000	1.449
@@ -2857,9 +2857,10 @@
   my $recur = 0;
   my $unitrecur = 0;
   my $sdate;
-  if ( ! $cust_pkg->getfield('susp') and
-           ( $part_pkg->getfield('freq') ne '0' &&
-             ( $cust_pkg->getfield('bill') || 0 ) <= $time
+  if (     ! $cust_pkg->get('susp')
+       and ! $cust_pkg->get('start_date')
+       and ( $part_pkg->getfield('freq') ne '0'
+             && ( $cust_pkg->getfield('bill') || 0 ) <= $time
            )
         || ( $part_pkg->plan eq 'voip_cdr'
               && $part_pkg->option('bill_every_call')



More information about the freeside-commits mailing list