1 package FS::h_svc_acct;
2 use base qw( FS::h_svc_Radius_Mixin FS::h_Common FS::svc_acct );
5 use vars qw( @ISA $DEBUG );
7 use FS::Record qw(qsearchs);
13 sub table { 'h_svc_acct' };
17 FS::h_svc_acct - Historical account objects
31 local($FS::Record::qsearch_qualify_columns) = 0;
32 $_[0] ||= $self->history_date;
33 qsearchs( 'h_svc_domain',
34 { 'svcnum' => $self->domsvc },
35 FS::h_svc_domain->sql_h_searchs(@_),
41 Returns the domain associated with this account.
47 die "svc_acct.domsvc is null for svcnum ". $self->svcnum unless $self->domsvc;
49 my $svc_domain = $self->svc_domain(@_) || $self->SUPER::svc_domain()
50 or die 'no history svc_domain.svcnum for svc_acct.domsvc ' . $self->domsvc;
52 carp 'Using FS::svc_acct record in place of missing FS::h_svc_acct record.'
53 if ($svc_domain->isa('FS::svc_acct') and $DEBUG);
64 An FS::h_svc_acct object represents a historical account. FS::h_svc_acct
65 inherits from FS::h_Common and FS::svc_acct.
71 L<FS::h_Common>, L<FS::svc_acct>, L<FS::Record>, schema.html from the base