projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix billing error with intro rate packages when billing dates have been edited non...
[freeside.git]
/
FS
/
FS
/
hardware_type.pm
diff --git
a/FS/FS/hardware_type.pm
b/FS/FS/hardware_type.pm
index
f19a3f6
..
8547312
100644
(file)
--- a/
FS/FS/hardware_type.pm
+++ b/
FS/FS/hardware_type.pm
@@
-1,8
+1,7
@@
package FS::hardware_type;
package FS::hardware_type;
+use base qw( FS::Record );
use strict;
use strict;
-use base qw( FS::Record );
-use FS::Record qw( qsearch qsearchs );
=head1 NAME
=head1 NAME
@@
-41,6
+40,8
@@
to which this device type belongs.
=item revision - revision name/number, subordinate to model
=item revision - revision name/number, subordinate to model
+=item title - external ID
+
=back
=head1 METHODS
=back
=head1 METHODS
@@
-105,6
+106,7
@@
sub check {
|| $self->ut_foreign_key('classnum', 'hardware_class', 'classnum')
|| $self->ut_text('model')
|| $self->ut_textn('revision')
|| $self->ut_foreign_key('classnum', 'hardware_class', 'classnum')
|| $self->ut_text('model')
|| $self->ut_textn('revision')
+ || $self->ut_textn('title')
;
return $error if $error;
;
return $error if $error;
@@
-115,13
+117,6
@@
sub check {
Returns the L<FS::hardware_class> associated with this device.
Returns the L<FS::hardware_class> associated with this device.
-=cut
-
-sub hardware_class {
- my $self = shift;
- return qsearchs('hardware_class', { 'classnum' => $self->classnum });
-}
-
=item description
Returns the model and revision number.
=item description
Returns the model and revision number.