X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FUpgrade.pm;h=d76379f3ea28b9d5ff289b201c3699df9b7ef90a;hb=6d47b55c98b1a8e145a4b63579e148241c65b6ed;hp=ce0e328fda8b0805b69804688ef4f194a1731e41;hpb=0ce1f788031c5eaac0c620add539730dd87e3113;p=freeside.git diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index ce0e328fd..d76379f3e 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -113,6 +113,26 @@ If you need to continue using the old Form 477 report, turn on the 'old_fcc_report' configuration option. "; } + + # boolean invoice_sections_by_location option is now + # invoice_sections_method = 'location' + my @invoice_sections_confs = + qsearch('conf', { 'name' => { op=>'LIKE', value=>'%sections_by_location' } }); + foreach my $c (@invoice_sections_confs) { + $c->name =~ /^(\w+)sections_by_location$/; + $conf->delete($c->name); + my $newname = $1.'sections_method'; + $conf->set($newname, 'location'); + } + + # boolean enable_taxproducts is now enable_taxproducts = 'cch' + if ( $conf->exists('enable_taxproducts') and + $conf->config('enable_taxproducts') eq '' ) { + + $conf->set('enable_taxproducts', 'cch'); + + } + } sub upgrade_overlimit_groups { @@ -362,6 +382,9 @@ sub upgrade_data { #populate state FIPS codes if not already done 'state' => [], + + #populate tax statuses + 'tax_status' => [], ; \%hash;