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
36 local($FS::Record::qsearch_qualify_columns) = 0;
38 my $h_svc_acct = qsearchs(
40 { 'svcnum' => $self->srcsvc },
41 FS::h_svc_acct->sql_h_searchs(@_),
42 ) || $self->SUPER::srcsvc_acct
43 or die "no history svc_acct.svcnum for svc_forward.srcsvc ". $self->srcsvc;
45 carp 'Using svc_acct in place of missing h_svc_acct record.'
46 if ($h_svc_acct->isa('FS::domain_record') and $DEBUG);
59 local($FS::Record::qsearch_qualify_columns) = 0;
61 my $h_svc_acct = qsearchs(
63 { 'svcnum' => $self->dstsvc },
64 FS::h_svc_acct->sql_h_searchs(@_),
65 ) || $self->SUPER::dstsvc_acct
66 or die "no history svc_acct.svcnum for svc_forward.dstsvc ". $self->dstsvc;
68 carp 'Using svc_acct in place of missing h_svc_acct record.'
69 if ($h_svc_acct->isa('FS::domain_record') and $DEBUG);
78 An FS::h_svc_forward object represents a historical mail forwarding alias.
79 FS::h_svc_forward inherits from FS::h_Common and FS::svc_forward.
85 L<FS::h_Common>, L<FS::svc_forward>, L<FS::Record>, schema.html from the base