X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Flog_context.pm;h=37befb5155d9bde8a2836395584b76c26f7568d7;hb=d39978bc228a538071e062329532e33df4a6dc9d;hp=a254905880f0010b68807e3d2038abd2507c68ab;hpb=95cef2cea4c98d8fde7f58bacce3cf1da955c1a0;p=freeside.git diff --git a/FS/FS/log_context.pm b/FS/FS/log_context.pm index a25490588..37befb515 100644 --- a/FS/FS/log_context.pm +++ b/FS/FS/log_context.pm @@ -5,15 +5,25 @@ use base qw( FS::Record ); 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 + FS::cust_main::Billing_Realtime::realtime_bop + FS::cust_main::Billing_Realtime::realtime_verify_bop + FS::pay_batch::import_from_gateway + FS::part_pkg + FS::Misc::Geo::standardize_uscensus Cron::bill + Cron::backup Cron::upload spool_upload daily queue upgrade upgrade_taxable_billpkgnum + freeside-paymentech-upload + freeside-paymentech-download + test ) ); =head1 NAME @@ -65,8 +75,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 +82,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 +99,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;