projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
rate_detail.pm
diff --git
a/FS/FS/rate_detail.pm
b/FS/FS/rate_detail.pm
index
f3ee84c
..
d81d9db
100644
(file)
--- a/
FS/FS/rate_detail.pm
+++ b/
FS/FS/rate_detail.pm
@@
-1,14
+1,13
@@
package FS::rate_detail;
package FS::rate_detail;
+use base qw(FS::Record);
use strict;
use strict;
-use vars qw( @ISA $DEBUG $me );
+use vars qw( $DEBUG $me );
+use Tie::IxHash;
use FS::Record qw( qsearch qsearchs dbh );
use FS::rate;
use FS::rate_region;
use FS::rate_time;
use FS::Record qw( qsearch qsearchs dbh );
use FS::rate;
use FS::rate_region;
use FS::rate_time;
-use Tie::IxHash;
-
-@ISA = qw(FS::Record);
$DEBUG = 0;
$me = '[FS::rate_detail]';
$DEBUG = 0;
$me = '[FS::rate_detail]';
@@
-130,7
+129,10
@@
sub check {
#|| $self->ut_money('min_charge')
#good enough for now...
#|| $self->ut_money('min_charge')
#good enough for now...
+ || $self->ut_floatn('conn_charge')
+ || $self->ut_floatn('conn_cost')
|| $self->ut_float('min_charge')
|| $self->ut_float('min_charge')
+ || $self->ut_floatn('min_cost')
|| $self->ut_number('sec_granularity')
|| $self->ut_number('sec_granularity')
@@
-147,13
+149,6
@@
sub check {
Returns the parent call plan (see L<FS::rate>) associated with this call plan
rate.
Returns the parent call plan (see L<FS::rate>) associated with this call plan
rate.
-=cut
-
-sub rate {
- my $self = shift;
- qsearchs('rate', { 'ratenum' => $self->ratenum } );
-}
-
=item orig_region
Returns the origination region (see L<FS::rate_region>) associated with this
=item orig_region
Returns the origination region (see L<FS::rate_region>) associated with this