projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0dc0e05
)
add ignore_unrateable flag to voip price plan
author
ivan
<ivan>
Fri, 31 Dec 2004 08:31:03 +0000
(08:31 +0000)
committer
ivan
<ivan>
Fri, 31 Dec 2004 08:31:03 +0000
(08:31 +0000)
FS/FS/part_pkg/voip_sqlradacct.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_pkg/voip_sqlradacct.pm
b/FS/FS/part_pkg/voip_sqlradacct.pm
index
608608f
..
7364fad
100644
(file)
--- a/
FS/FS/part_pkg/voip_sqlradacct.pm
+++ b/
FS/FS/part_pkg/voip_sqlradacct.pm
@@
-30,7
+30,7
@@
$DEBUG = 0;
'type' => 'checkbox',
},
},
'type' => 'checkbox',
},
},
- 'fieldorder' => [qw( setup_fee recur_flat ratenum )],
+ 'fieldorder' => [qw( setup_fee recur_flat ratenum
ignore_unrateable
)],
'weight' => 40,
);
'weight' => 40,
);
@@
-103,8
+103,14
@@
sub calc_recur {
'countrycode' => $countrycode,
'npa' => '',
});
'countrycode' => $countrycode,
'npa' => '',
});
- die "Can't find rate for call to countrycode $countrycode number $dest\n"
- unless $rate_prefix;
+
+ unless ( $rate_prefix ) {
+ if ( $self->option('ignore_unrateable') ) {
+ next;
+ } else {
+ die "Can't find rate for call to +$countrycode $dest\n"
+ }
+ }
my $regionnum = $rate_prefix->regionnum;
my $regionnum = $rate_prefix->regionnum;