X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2FUpgrade.pm;h=cb16ead801e12bd9a27074f08312dc97f92492f7;hb=c9081050af4a3bd2d151508605493c946b38ff9d;hp=ce0e328fda8b0805b69804688ef4f194a1731e41;hpb=4ef0b959f263b506ee1a0d06e69040d7f30a471a;p=freeside.git diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm index ce0e328fd..cb16ead80 100644 --- a/FS/FS/Upgrade.pm +++ b/FS/FS/Upgrade.pm @@ -113,6 +113,18 @@ 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'); + } + } sub upgrade_overlimit_groups {