1 package FS::cdr::simple2;
4 use vars qw( @ISA %info $tmp_mon $tmp_mday $tmp_year );
6 use FS::cdr qw(_cdr_min_parser_maker);
11 'name' => 'Simple (Prerated)',
15 sub {}, #TEXT_TIME (redundant w/Time)
20 sub { my($cdr, $date) = @_;
21 $date =~ /^(\d\d(\d\d)?)\/(\d{1,2})\/(\d{1,2})$/
22 or die "unparsable date: $date"; #maybe we shouldn't die...
23 #$cdr->startdate( timelocal(0, 0, 0 ,$3, $2-1, $1) );
24 ($tmp_mday, $tmp_mon, $tmp_year) = ( $4, $3-1, $1 );
28 sub { my($cdr, $time) = @_;
29 $time =~ /^(\d{1,2}):(\d{1,2}):(\d{1,2})$/
30 or die "unparsable time: $time"; #maybe we shouldn't die...
31 #$cdr->startdate( timelocal($3, $2, $1 ,$mday, $mon, $year) );
33 timelocal($3, $2, $1 ,$tmp_mday, $tmp_mon, $tmp_year)
38 'userfield', #? #DestinationDesc
41 _cdr_min_parser_maker, #( [qw( billsec duration)] ),
43 sub {}, #Rate XXX do something w/this, informationally???
44 'upstream_price', #Total
46 'accountcode', #ServCode
47 'description', #Service_Type