fix quotations vs invoice_sections, RT#21103
authorIvan Kohler <ivan@freeside.biz>
Wed, 20 Mar 2013 02:46:45 +0000 (19:46 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 20 Mar 2013 02:46:45 +0000 (19:46 -0700)
FS/FS/Conf.pm
FS/FS/Template_Mixin.pm

index fbac011..a676e66 100644 (file)
@@ -1529,8 +1529,18 @@ and customer address. Include units.',
     'section'     => 'invoicing',
     'description' => 'Split invoice into sections and label according to package category when enabled.',
     'type'        => 'checkbox',
+    'per_agent'   => 1,
   },
 
+  #quotations seem broken-ish with sections ATM?
+  #{ 
+  #  'key'         => 'quotation_sections',
+  #  'section'     => 'invoicing',
+  #  'description' => 'Split quotations into sections and label according to package category when enabled.',
+  #  'type'        => 'checkbox',
+  #  'per_agent'   => 1,
+  #},
+
   { 
     'key'         => 'usage_class_as_a_section',
     'section'     => 'invoicing',
index b645b6e..e3958a4 100644 (file)
@@ -737,7 +737,7 @@ sub print_generic {
   $adjust_section->{'sort_weight'} = $adjust_weight;
 
   my $unsquelched = $params{unsquelch_cdr} || $cust_main->squelch_cdr ne 'Y';
-  my $multisection = $conf->exists('invoice_sections', $cust_main->agentnum);
+  my $multisection = $conf->exists($tc.'_sections', $cust_main->agentnum);
   $invoice_data{'multisection'} = $multisection;
   my $late_sections = [];
   my $extra_sections = [];