X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Flog_context.pm;h=403829ac232fdbb9686f5a53c631c9f53191319e;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=a254905880f0010b68807e3d2038abd2507c68ab;hpb=d7e62d5ea2b5d3f3c7b8ba3da39cce1a606dc3d3;p=freeside.git diff --git a/FS/FS/log_context.pm b/FS/FS/log_context.pm index a25490588..403829ac2 100644 --- a/FS/FS/log_context.pm +++ b/FS/FS/log_context.pm @@ -7,6 +7,8 @@ use FS::Record qw( qsearch qsearchs ); my @contexts = ( qw( test bill_and_collect + FS::cust_main::Billing::bill_and_collect + FS::cust_main::Billing::bill Cron::bill Cron::upload spool_upload @@ -65,8 +67,6 @@ points to. You can ask the object for a copy with the I method. =cut -# the new method can be inherited from FS::Record, if a table method is defined - sub table { 'log_context'; } =item insert @@ -74,27 +74,15 @@ sub table { 'log_context'; } Adds this record to the database. If there is an error, returns the error, otherwise returns false. -=cut - -# the insert method can be inherited from FS::Record - =item delete Delete this record from the database. -=cut - -# the delete method can be inherited from FS::Record - =item replace OLD_RECORD Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false. -=cut - -# the replace method can be inherited from FS::Record - =item check Checks all fields to make sure this is a valid example. If there is @@ -103,16 +91,13 @@ and replace methods. =cut -# the check method should currently be supplied - FS::Record contains some -# data checking routines - sub check { my $self = shift; my $error = $self->ut_numbern('logcontextnum') || $self->ut_number('lognum') - || $self->ut_enum('context', \@contexts) + || $self->ut_text('context') #|| $self->ut_enum('context', \@contexts) ; return $error if $error;