diff options
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/part_export.pm | 4 | ||||
| -rw-r--r-- | FS/FS/part_export/northern_911.pm | 9 |
2 files changed, 4 insertions, 9 deletions
diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 1a8f43de1..96fb85fc3 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -666,7 +666,7 @@ sub _export_suspend { #warn "warning: _export_suspened unimplemented for". ref($self); my $svc_x = shift; my $new = $svc_x->clone_suspended; - $self->_export_replace( $new, $svc_x ); + $self->export_replace( $new, $svc_x ); } sub _export_unsuspend { @@ -674,7 +674,7 @@ sub _export_unsuspend { #warn "warning: _export_unsuspend unimplemented for ". ref($self); my $svc_x = shift; my $old = $svc_x->clone_kludge_unsuspend; - $self->_export_replace( $svc_x, $old ); + $self->export_replace( $svc_x, $old ); } =item get_remoteid SVC diff --git a/FS/FS/part_export/northern_911.pm b/FS/FS/part_export/northern_911.pm index 679f5daf6..789d839e2 100644 --- a/FS/FS/part_export/northern_911.pm +++ b/FS/FS/part_export/northern_911.pm @@ -1,10 +1,11 @@ package FS::part_export::northern_911; +use base 'FS::part_export'; use strict; use vars qw(@ISA %info); use Tie::IxHash; use FS::Record qw(qsearch dbh); -use base 'FS::part_export'; +use WebService::Northern911; use Data::Dumper; tie my %options, 'Tie::IxHash', @@ -22,9 +23,6 @@ tie my %options, 'Tie::IxHash', 'options' => \%options, 'no_machine' => 1, 'notes' => <<'END' -Requires installation of -<a href="http://search.cpan.org/dist/WebService-Northern911">WebService::Northern911</a> -from CPAN. END ); @@ -32,9 +30,6 @@ sub client { my $self = shift; if (!$self->get('client')) { - local $@; - eval "use WebService::Northern911"; - return "error loading WebService::Northern911 ($@)" if $@; $self->set('client', WebService::Northern911->new( vendor_code => $self->option('vendor_code'), |
