fix noisy but harmless fallout from RT#10148
authorivan <ivan>
Tue, 23 Nov 2010 01:52:20 +0000 (01:52 +0000)
committerivan <ivan>
Tue, 23 Nov 2010 01:52:20 +0000 (01:52 +0000)
FS/FS/cust_main/Billing.pm
httemplate/view/cust_main/packages/status.html

index 536a938..4b727bb 100644 (file)
@@ -857,7 +857,7 @@ sub _make_lines {
   my $unitrecur = 0;
   my $sdate;
   if (     ! $cust_pkg->start_date
-       and ( ! $cust_pkg->susp || $part_pkg->option('suspend_bill') )
+       and ( ! $cust_pkg->susp || $part_pkg->option('suspend_bill', 1) )
        and
             ( $part_pkg->freq ne '0' && ( $cust_pkg->bill || 0 ) <= $time )
          || ( $part_pkg->plan eq 'voip_cdr'
index c05cd5a..f9198c2 100644 (file)
@@ -54,7 +54,7 @@
 
     <% pkg_status_row_changed( $cust_pkg, %opt, 'colspan'=>$colspan ) %>
     <% pkg_status_row_if( $cust_pkg, $last_bill_or_renewed, 'last_bill', %opt, curuser=>$curuser ) %>
-%   if ( $part_pkg->option('suspend_bill') ) {
+%   if ( $part_pkg->option('suspend_bill', 1) ) {
       <% pkg_status_row_if( $cust_pkg, 'Next&nbsp;bill', 'bill', %opt, curuser=>$curuser ) %>
 %   }
     <% pkg_status_row_if( $cust_pkg, 'Expires', 'expire', %opt, curuser=>$curuser ) %>