X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_svc_router.pm;h=df04cc9fb4e6f940bceff66f7b4fdcf544c120cd;hb=f441bdef352ddd432e305da35e80813ca30e517f;hp=0b23ab58085ed241e2cad8fa70c62115c462617e;hpb=eb9668a6f3181ee02cb335272c5ee4616e61fd09;p=freeside.git diff --git a/FS/FS/part_svc_router.pm b/FS/FS/part_svc_router.pm index 0b23ab580..df04cc9fb 100755 --- a/FS/FS/part_svc_router.pm +++ b/FS/FS/part_svc_router.pm @@ -13,7 +13,8 @@ sub table { 'part_svc_router'; } sub check { my $self = shift; my $error = - $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart') + $self->ut_numbern('svcrouternum') + || $self->ut_foreign_key('svcpart', 'part_svc', 'svcpart') || $self->ut_foreign_key('routernum', 'router', 'routernum'); return $error if $error; ''; #no error