X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fconvert-477-options;h=8225a22a579d3247ff52329b0d9dd09bfdce4910;hb=29620c88292178979a0ebf1827caf14b3d471536;hp=2b8970aaef4f192ae040f7d2f6bdb0fce7473bcf;hpb=0c72c2bf6a4f6e77fc7bea698b428a66febcae79;p=freeside.git diff --git a/bin/convert-477-options b/bin/convert-477-options index 2b8970aae..8225a22a5 100755 --- a/bin/convert-477-options +++ b/bin/convert-477-options @@ -121,7 +121,7 @@ for my $part_pkg (qsearch('part_pkg', { freq => {op => '!=', value => '0'}})) { if ($part_pkg->fcc_voip_class) { # there's no such thing as a VoIP DS0 equivalent, but this is # what we used the field for - push @fcc_opts, 'voip_lines' => $part_pkg->fcc_ds0s; + push @fcc_opts, 'voip_sessions' => $part_pkg->fcc_ds0s; } else { push @fcc_opts, 'phone_lines' => $part_pkg->fcc_ds0s, 'is_phone' => 1; } @@ -129,7 +129,7 @@ for my $part_pkg (qsearch('part_pkg', { freq => {op => '!=', value => '0'}})) { my %fcc_opts = @fcc_opts; #print map {"\t$_\t".$fcc_opts{$_}."\n"} keys %fcc_opts; - my $error = $part_pkg->process_fcc_options(\%fcc_opts); + my $error = $part_pkg->set_fcc_options(\%fcc_opts); if ( $error ) { die "$error\n"; }