From fc7539c3b8a0ae3326df9f47e924e36de3ef2cfe Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 19 Mar 2013 19:46:45 -0700 Subject: [PATCH] fix quotations vs invoice_sections, RT#21103 --- FS/FS/Conf.pm | 10 ++++++++++ FS/FS/Template_Mixin.pm | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index fbac0116d..a676e66c9 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -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', diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index b645b6e00..e3958a436 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -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 = []; -- 2.11.0