part_pkg prorate mixin and sync_bill_date option, RT#9554
[freeside.git] / httemplate / misc / order_pkg.html
index 33b2bb3..2511a3d 100644 (file)
@@ -128,7 +128,11 @@ my $cust_main = qsearchs({
 my $pkgpart = scalar($cgi->param('pkgpart'));
 
 my $format = $date_format. ' %T %z (%Z)'; #false laziness w/REAL_cust_pkg.cgi?
-my $start_date = $cust_main->next_bill_date;
-$start_date = $start_date ? time2str($format, $start_date) : '';
+my $start_date = '';
+if(! $conf->exists('order_pkg-no_start_date') ) {
+  warn "foo";
+  $cust_main->next_bill_date;
+  $start_date = $start_date ? time2str($format, $start_date) : '';
+}
 
 </%init>