1 package FS::h_svc_forward;
4 use vars qw( @ISA $DEBUG );
5 use FS::Record qw(qsearchs);
15 @ISA = qw( FS::h_Common FS::svc_forward );
17 sub table { 'h_svc_forward' };
21 FS::h_svc_forward - Historical mail forwarding alias objects
35 my $h_svc_acct = qsearchs(
37 { 'svcnum' => $self->srcsvc },
38 FS::h_svc_acct->sql_h_searchs(@_),
39 ) || $self->SUPER::srcsvc_acct
40 or die "no history svc_acct.svcnum for svc_forward.srcsvc ". $self->srcsvc;
42 carp 'Using svc_acct in place of missing h_svc_acct record.'
43 if ($h_svc_acct->isa('FS::domain_record') and $DEBUG);
55 my $h_svc_acct = qsearchs(
57 { 'svcnum' => $self->dstsvc },
58 FS::h_svc_acct->sql_h_searchs(@_),
59 ) || $self->SUPER::dstsvc_acct
60 or die "no history svc_acct.svcnum for svc_forward.dstsvc ". $self->dstsvc;
62 carp 'Using svc_acct in place of missing h_svc_acct record.'
63 if ($h_svc_acct->isa('FS::domain_record') and $DEBUG);
72 An FS::h_svc_forward object represents a historical mail forwarding alias.
73 FS::h_svc_forward inherits from FS::h_Common and FS::svc_forward.
79 L<FS::h_Common>, L<FS::svc_forward>, L<FS::Record>, schema.html from the base