# boolean+text previous_balance-exclude_from_total is now two separate options
my $total_new_charges = $conf->config('previous_balance-exclude_from_total');
# boolean+text previous_balance-exclude_from_total is now two separate options
my $total_new_charges = $conf->config('previous_balance-exclude_from_total');
$conf->set('previous_balance-text-total_new_charges', $total_new_charges);
$conf->set('previous_balance-exclude_from_total', '');
}
$conf->set('previous_balance-text-total_new_charges', $total_new_charges);
$conf->set('previous_balance-exclude_from_total', '');
}
- if ($conf->config('cust-fields') =~ / \| Payment Type/) {
- my $cust_fields = $conf->config('cust-fields');
+ my $cust_fields = $conf->config('cust-fields');
+ if ( defined $cust_fields && $cust_fields =~ / \| Payment Type/ ) {
# so we can potentially use 'Payment Types' or somesuch in the future
$cust_fields =~ s/ \| Payment Type( \|)/$1/;
$cust_fields =~ s/ \| Payment Type$//;
# so we can potentially use 'Payment Types' or somesuch in the future
$cust_fields =~ s/ \| Payment Type( \|)/$1/;
$cust_fields =~ s/ \| Payment Type$//;