1 package FS::part_svc_router;
5 use FS::Record qw(qsearchs);
11 sub table { 'part_svc_router'; }
16 $self->ut_numbern('svcrouternum')
17 || $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart')
18 || $self->ut_foreign_key('routernum', 'router', 'routernum');
19 return $error if $error;
25 return qsearchs('router', { routernum => $self->routernum });
30 return qsearchs('part_svc', { svcpart => $self->svcpart });