=item phonenum -
+=item accountcode - accountcode
+
+=item startdate - CDR startdate, if any
+
=item detail - detail description
=back
|| $self->ut_enum('format', [ '', 'C' ] )
|| $self->ut_numbern('duration')
|| $self->ut_textn('regionname')
+ || $self->ut_textn('accountcode')
|| $self->ut_text('detail')
|| $self->ut_foreign_keyn('classnum', 'usage_class', 'classnum')
|| $self->$phonenum_check_method('phonenum')
If I<escape_function> is set then the format is processed by this
function before being returned.
+DEPRECATED? (mostly unused, expensive)
If I<format_function> is set then the detail is handed to this callback
for processing.
=cut
+#totally false laziness w/cust_bill_pkg->detail
sub formatted {
my ( $self, %opt ) = @_;
my $format = $opt{format} || '';
warn "$me upgrading $class\n" if $DEBUG;
- my $type = dbdef->table($class->table)->column('classnum')->type;
+ my $classnum = dbdef->table($class->table)->column('classnum')
+ or return;
+
+ my $type = $classnum->type;
unless ( $type =~ /^int/i || $type =~ /int$/i ) {
my $dbh = dbh;