always show the previous section when previous_balance-summary_only is enabled
authorjeff <jeff>
Thu, 4 Mar 2010 05:31:15 +0000 (05:31 +0000)
committerjeff <jeff>
Thu, 4 Mar 2010 05:31:15 +0000 (05:31 +0000)
FS/FS/cust_bill.pm

index 0f08aaa..85628fb 100644 (file)
@@ -2630,7 +2630,9 @@ sub print_generic {
   $invoice_data{current_less_finance} =
     sprintf('%.2f', $self->charged - $invoice_data{finance_amount} );
 
   $invoice_data{current_less_finance} =
     sprintf('%.2f', $self->charged - $invoice_data{finance_amount} );
 
-  if ( $multisection && !$conf->exists('disable_previous_balance') ) {
+  if ( $multisection && !$conf->exists('disable_previous_balance')
+    || $conf->exists('previous_balance-summary_only') )
+  {
     unshift @sections, $previous_section if $pr_total;
   }
 
     unshift @sections, $previous_section if $pr_total;
   }