1 package FS::h_svc_acct;
4 use vars qw( @ISA $DEBUG );
6 use FS::Record qw(qsearchs);
12 @ISA = qw( FS::h_Common FS::svc_acct );
16 sub table { 'h_svc_acct' };
20 FS::h_svc_acct - Historical account objects
34 qsearchs( 'h_svc_domain',
35 { 'svcnum' => $self->domsvc },
36 FS::h_svc_domain->sql_h_searchs(@_),
42 Returns the domain associated with this account.
48 die "svc_acct.domsvc is null for svcnum ". $self->svcnum unless $self->domsvc;
50 my $svc_domain = $self->svc_domain(@_) || $self->SUPER::svc_domain()
51 or die 'no history svc_domain.svcnum for svc_acct.domsvc ' . $self->domsvc;
53 carp 'Using FS::svc_acct record in place of missing FS::h_svc_acct record.'
54 if ($svc_domain->isa('FS::svc_acct') and $DEBUG);
65 An FS::h_svc_acct object represents a historical account. FS::h_svc_acct
66 inherits from FS::h_Common and FS::svc_acct.
72 L<FS::h_Common>, L<FS::svc_acct>, L<FS::Record>, schema.html from the base