use Carp;
use FS::Record qw( qsearch qsearchs );
use FS::cust_note_class;
+use FS::Conf;
=head1 NAME
|| $self->ut_numbern('_date')
|| $self->ut_textn('otaker')
|| $self->ut_anything('comments')
+ || $self->ut_numbern('sticky')
;
return $error if $error;
+ if (!$self->classnum) {
+ my $conf = new FS::Conf;
+ return 'Note class is required'
+ if $conf->exists('cust_main_note-require_class');
+ }
+
$self->SUPER::check;
}