X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fsvc_external.pm;h=79eec97c47267fdf65ce39fe3e338268c04cfb15;hb=e96a3fd1c8ee8c711a7e119c0937da6866bbd4f0;hp=fe4ea1d6706c4e18f60c49216faa77c246846ed0;hpb=d20581bcbf2809d5c2969d773b16a0c8714a6dec;p=freeside.git diff --git a/FS/FS/svc_external.pm b/FS/FS/svc_external.pm index fe4ea1d67..79eec97c4 100644 --- a/FS/FS/svc_external.pm +++ b/FS/FS/svc_external.pm @@ -69,7 +69,7 @@ points to. You can ask the object for a copy with the I method. sub table { 'svc_external'; } -=item insert +=item insert [ , OPTION => VALUE ... ] Adds this external service to the database. If there is an error, returns the error, otherwise returns false. @@ -77,17 +77,23 @@ error, otherwise returns false. The additional fields pkgnum and svcpart (see L) should be defined. An FS::cust_svc record will be created and inserted. -=cut +Currently available options are: I -sub insert { - my $self = shift; - my $error; +If I is set (to a scalar jobnum or an array reference of +jobnums), all provisioning jobs will have a dependancy on the supplied +jobnum(s) (they will not run until the specific job(s) complete(s)). - $error = $self->SUPER::insert; - return $error if $error; +=cut - ''; -} +#sub insert { +# my $self = shift; +# my $error; +# +# $error = $self->SUPER::insert(@_); +# return $error if $error; +# +# ''; +#} =item delete @@ -95,15 +101,15 @@ Delete this record from the database. =cut -sub delete { - my $self = shift; - my $error; - - $error = $self->SUPER::delete; - return $error if $error; - - ''; -} +#sub delete { +# my $self = shift; +# my $error; +# +# $error = $self->SUPER::delete; +# return $error if $error; +# +# ''; +#} =item replace OLD_RECORD @@ -113,15 +119,15 @@ returns the error, otherwise returns false. =cut -sub replace { - my ( $new, $old ) = ( shift, shift ); - my $error; - - $error = $new->SUPER::replace($old); - return $error if $error; - - ''; -} +#sub replace { +# my ( $new, $old ) = ( shift, shift ); +# my $error; +# +# $error = $new->SUPER::replace($old); +# return $error if $error; +# +# ''; +#} =item suspend @@ -152,7 +158,7 @@ sub check { my $error = $self->ut_numbern('svcnum') - || $self->ut_number('id') + || $self->ut_numbern('id') || $self->ut_textn('title') ;