freeside/FS/FS/part_pkg voip_sqlradacct.pm,1.4,1.5
ivan
ivan at pouncequick.420.am
Fri Dec 31 00:31:06 PST 2004
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory pouncequick:/tmp/cvs-serv11507/FS/FS/part_pkg
Modified Files:
voip_sqlradacct.pm
Log Message:
add ignore_unrateable flag to voip price plan
Index: voip_sqlradacct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/voip_sqlradacct.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- voip_sqlradacct.pm 31 Dec 2004 08:24:26 -0000 1.4
+++ voip_sqlradacct.pm 31 Dec 2004 08:31:03 -0000 1.5
@@ -30,7 +30,7 @@
'type' => 'checkbox',
},
},
- 'fieldorder' => [qw( setup_fee recur_flat ratenum )],
+ 'fieldorder' => [qw( setup_fee recur_flat ratenum ignore_unrateable )],
'weight' => 40,
);
@@ -103,8 +103,14 @@
'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;
More information about the freeside-commits
mailing list