$conf->delete('voip-cust_email_csv_cdr') ;
}
+ if ($conf->exists('unsuspendauto') && !$conf->config('unsuspend_balance')) {
+ $conf->set('unsuspend_balance','Zero');
+ $conf->delete('unsuspendauto');
+ }
+
enable_banned_pay_pad() unless length($conf->config('banned_pay-pad'));
}
sub upgrade_invoice_from {
my ($conf, $agentnum, $agentonly) = @_;
if (
- (!$conf->exists('invoice_from_name',$agentnum,$agentonly)) &&
- ($conf->config('invoice_from',$agentnum,$agentonly) =~ /\<(.*)\>/)
+ ! $conf->exists('invoice_from_name',$agentnum,$agentonly)
+ && $conf->exists('invoice_from',$agentnum,$agentonly)
+ && $conf->config('invoice_from',$agentnum,$agentonly) =~ /\<(.*)\>/
) {
my $realemail = $1;
$realemail =~ s/^\s*//; # remove leading spaces
tie my %hash, 'Tie::IxHash',
- #payby conditions to new ones
- 'part_event_condition' => [],
-
- #payby actions to new ones
- 'part_event' => [],
-
#cust_main (remove paycvv from history, locations, cust_payby, etc)
'cust_main' => [],
#populate tax statuses
'tax_status' => [],
+
+ #mark certain taxes as system-maintained
+ 'cust_main_county' => [],
;
\%hash;