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 $_[0] ||= $self->history_date;
39 my $h_svc_acct = qsearchs(
41 { 'svcnum' => $self->srcsvc },
42 FS::h_svc_acct->sql_h_searchs(@_),
43 ) || $self->SUPER::srcsvc_acct
44 or die "no history svc_acct.svcnum for svc_forward.srcsvc ". $self->srcsvc;
46 carp 'Using svc_acct in place of missing h_svc_acct record.'
47 if ($h_svc_acct->isa('FS::domain_record') and $DEBUG);
60 local($FS::Record::qsearch_qualify_columns) = 0;
62 $_[0] ||= $self->history_date;
63 my $h_svc_acct = qsearchs(
65 { 'svcnum' => $self->dstsvc },
66 FS::h_svc_acct->sql_h_searchs(@_),
67 ) || $self->SUPER::dstsvc_acct
68 or die "no history svc_acct.svcnum for svc_forward.dstsvc ". $self->dstsvc;
70 carp 'Using svc_acct in place of missing h_svc_acct record.'
71 if ($h_svc_acct->isa('FS::domain_record') and $DEBUG);
80 An FS::h_svc_forward object represents a historical mail forwarding alias.
81 FS::h_svc_forward inherits from FS::h_Common and FS::svc_forward.
87 L<FS::h_Common>, L<FS::svc_forward>, L<FS::Record>, schema.html from the base