[freeside-commits] freeside/FS/FS rate_detail.pm,1.5.2.2,1.5.2.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Mar 26 08:42:50 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv4133/FS/FS
Modified Files:
Tag: FREESIDE_1_7_BRANCH
rate_detail.pm
Log Message:
fixup per call billing
Index: rate_detail.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/rate_detail.pm,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -u -d -r1.5.2.2 -r1.5.2.3
--- rate_detail.pm 13 Feb 2008 23:39:10 -0000 1.5.2.2
+++ rate_detail.pm 26 Mar 2008 15:42:47 -0000 1.5.2.3
@@ -5,6 +5,7 @@
use FS::Record qw( qsearch qsearchs );
use FS::rate;
use FS::rate_region;
+use Tie::IxHash;
@ISA = qw(FS::Record);
@@ -189,6 +190,31 @@
=back
+=head1 SUBROUTINES
+
+=over 4
+
+=item granularities
+
+ Returns an (ordered) hash of granularity => name pairs
+
+=cut
+
+tie my %granularities, 'Tie::IxHash',
+ '1', => '1 second',
+ '6' => '6 second',
+ '30' => '30 second', # '1/2 minute',
+ '60' => 'minute',
+ '0' => 'call',
+;
+
+sub granularities {
+ %granularities;
+}
+
+
+=back
+
=head1 BUGS
=head1 SEE ALSO
More information about the freeside-commits
mailing list