X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=f5086853ed1feaa483eb88702d078e73acff3953;hb=d4241783f38422179fe88e65175995f0d1804e69;hp=9187cab4085c0be584592d7e37f35926e8f73358;hpb=973d5dd654ea23dea3ff185e157a404556815ccb;p=freeside.git diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index 9187cab40..f5086853e 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -70,7 +70,7 @@ sub upgrade_config { upgrade_invoice_from($conf); foreach my $agent (@agents) { - upgrade_invoice_from($conf,$agent->agentnum); + upgrade_invoice_from($conf,$agent->agentnum,1); } my $DIST_CONF = '/usr/local/etc/freeside/default_conf/';#DIST_CONF in Makefile @@ -138,6 +138,13 @@ If you need to continue using the old Form 477 report, turn on the $conf->delete('tax-cust_exempt-groups-require_individual_nums'); } + # boolean+text previous_balance-exclude_from_total is now two separate options + my $total_new_charges = $conf->config('previous_balance-exclude_from_total'); + if (length($total_new_charges) > 0) { + $conf->set('previous_balance-text-total_new_charges', $total_new_charges); + $conf->set('previous_balance-exclude_from_total', ''); + } + } sub upgrade_overlimit_groups { @@ -167,10 +174,10 @@ sub upgrade_overlimit_groups { } sub upgrade_invoice_from { - my ($conf, $agentnum) = @_; + my ($conf, $agentnum, $agentonly) = @_; if ( - (!$conf->config('invoice_from_name',$agentnum)) && - ($conf->config('invoice_from',$agentnum) =~ /\<(.*)\>/) + (!$conf->exists('invoice_from_name',$agentnum,$agentonly)) && + ($conf->config('invoice_from',$agentnum,$agentonly) =~ /\<(.*)\>/) ) { my $realemail = $1; $realemail =~ s/^\s*//; # remove leading spaces @@ -406,6 +413,9 @@ sub upgrade_data { #populate state FIPS codes if not already done 'state' => [], + + #set default locations on quoted packages + 'quotation_pkg' => [], ; \%hash;