X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcdr_termination.pm;h=5e308051150f5c3717a2266760fd1ce1c315d945;hb=387c96b0d8f224f3ade27bed9348f37b432bbb8a;hp=5fe8db6bf6d38d1bc284caa38f05aa20df252a0d;hpb=a67fd3bbfeec137ebf494e36eaa920145b8509a1;p=freeside.git diff --git a/FS/FS/cdr_termination.pm b/FS/FS/cdr_termination.pm index 5fe8db6bf..5e3080511 100644 --- a/FS/FS/cdr_termination.pm +++ b/FS/FS/cdr_termination.pm @@ -51,6 +51,9 @@ rated_price status +=item svcnum + +svc_phone record associated with this transaction, if there is one. =back @@ -117,26 +120,26 @@ sub check { #|| $self->ut_foreign_key('termpart', 'part_termination', 'termpart') || $self->ut_number('termpart') || $self->ut_float('rated_price') - || $self->ut_enum('status', '', 'done' ) # , 'skipped' ) + || $self->ut_enum('status', [ '', 'done' ] ) # , 'skipped' ] ) ; return $error if $error; $self->SUPER::check; } -=item set_status_and_rated_price STATUS [ RATED_PRICE ] - -Sets the status to the provided string. If there is an error, returns the -error, otherwise returns false. - -=cut - -sub set_status_and_rated_price { - my($self, $status, $rated_price) = @_; - $self->status($status); - $self->rated_price($rated_price); - $self->replace(); -} +#=item set_status_and_rated_price STATUS [ RATED_PRICE ] +# +#Sets the status to the provided string. If there is an error, returns the +#error, otherwise returns false. +# +#=cut +# +#sub set_status_and_rated_price { +# my($self, $status, $rated_price) = @_; +# $self->status($status); +# $self->rated_price($rated_price); +# $self->replace(); +#} =back