my %options = ();
$options{'section'} = $section if $multisection;
+ $options{'section_with_taxes'} = 1
+ if $conf->config_bool('invoice_sections_with_taxes', $cust_main->agentnum);
$options{'format'} = $format;
$options{'escape_function'} = $escape_function;
$options{'no_usage'} = 1 unless $unsquelched;
# but not escape the base description line
my @pkg_tax = $cust_bill_pkg->_pkg_tax_list
- if $self->conf->exists('invoice_sections_with_taxes');
+ if $options{section_with_taxes};
push @items,
{ feepart => $cust_bill_pkg->feepart,
);
my @pkg_tax = $cust_bill_pkg->_pkg_tax_list
- if $self->conf->exists('invoice_sections_with_taxes');
+ if $opt{section_with_taxes};
if ( ref($cust_bill_pkg) eq 'FS::quotation_pkg' ) {
# XXX this should be pulled out into quotation_pkg