projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add quantity to self-service change_pkg, RT#34068
[freeside.git]
/
FS
/
FS
/
phone_device.pm
diff --git
a/FS/FS/phone_device.pm
b/FS/FS/phone_device.pm
index
ba765e0
..
b891bb2
100644
(file)
--- a/
FS/FS/phone_device.pm
+++ b/
FS/FS/phone_device.pm
@@
-1,11
+1,9
@@
package FS::phone_device;
package FS::phone_device;
+use base qw( FS::MAC_Mixin FS::Record );
use strict;
use strict;
-use base qw( FS::Record );
use Scalar::Util qw( blessed );
use Scalar::Util qw( blessed );
-use FS::Record qw( dbh qsearchs ); # qsearch );
-use FS::part_device;
-use FS::svc_phone;
+use FS::Record qw( dbh ); # qsearch qsearchs dbh );
=head1 NAME
=head1 NAME
@@
-208,25
+206,11
@@
sub check {
Returns the device type record (see L<FS::part_device>) associated with this
customer device.
Returns the device type record (see L<FS::part_device>) associated with this
customer device.
-=cut
-
-sub part_device {
- my $self = shift;
- qsearchs( 'part_device', { 'devicepart' => $self->devicepart } );
-}
-
=item svc_phone
Returns the phone number (see L<FS::svc_phone>) associated with this customer
device.
=item svc_phone
Returns the phone number (see L<FS::svc_phone>) associated with this customer
device.
-=cut
-
-sub svc_phone {
- my $self = shift;
- qsearchs( 'svc_phone', { 'svcnum' => $self->svcnum } );
-}
-
=item export HOOK [ EXPORT_ARGS ]
Runs the provided export hook (i.e. "device_insert") for this service.
=item export HOOK [ EXPORT_ARGS ]
Runs the provided export hook (i.e. "device_insert") for this service.