X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Flog_context.pm;h=d7ea26b37d042901f455e52f7076c7a2a161ef71;hb=c48c1ed2ac975eb3b5b97f7876978b90fae4f316;hp=372bdaa39aab6a6ee7581703fc0dc66ac14a12f1;hpb=96783bdc58be6e4f2fc56d516a9ceba57af00ba8;p=freeside.git diff --git a/FS/FS/log_context.pm b/FS/FS/log_context.pm index 372bdaa39..d7ea26b37 100644 --- a/FS/FS/log_context.pm +++ b/FS/FS/log_context.pm @@ -7,11 +7,20 @@ 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_verify_bop + FS::part_pkg + FS::Misc::Geo::standardize_uscensus Cron::bill Cron::upload spool_upload daily queue + upgrade + upgrade_taxable_billpkgnum + freeside-paymentech-upload + freeside-paymentech-download ) ); =head1 NAME @@ -63,8 +72,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 @@ -72,27 +79,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 @@ -101,16 +96,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;