X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=eb2587b3492e319a5d1f969bef0a3fffa0ff3222;hp=395c6d0b38b57aa69dd16894e29c6dce46d6a6a8;hb=f4ee374e9bbb313234278c7231c046f8e07086f0;hpb=7643e364c22eeca302f09a87ea968175ce01985b diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index 395c6d0b3..eb2587b34 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -160,6 +160,16 @@ If you need to continue using the old Form 477 report, turn on the $conf->delete('batch-errors_to'); } + if ( $conf->exists('voip-cust_email_csv_cdr') ) { + $conf->set('voip_cdr_email_attach', 'csv'); + $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')); } @@ -193,8 +203,9 @@ sub upgrade_overlimit_groups { 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 @@ -325,12 +336,6 @@ sub upgrade_data { 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' => [], @@ -453,6 +458,9 @@ sub upgrade_data { #populate tax statuses 'tax_status' => [], + + #mark certain taxes as system-maintained + 'cust_main_county' => [], ; \%hash;