X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export.pm;h=9d261f02d876d3cf24fb54506f18831fbb31c70b;hb=15c1f19f13159664062bfd0cde07f9f117a5fca6;hp=28cb1419da2f50fe9e909950ae7c3fff0ca5af33;hpb=f3e0ac2b009c4edd5692cb587ff709dac2223ebe;p=freeside.git diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 28cb1419d..9d261f02d 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -1,16 +1,15 @@ package FS::part_export; +use base qw( FS::option_Common FS::m2m_Common ); use strict; use vars qw( @ISA @EXPORT_OK $DEBUG %exports ); use Exporter; use Tie::IxHash; -use base qw( FS::option_Common FS::m2m_Common ); use FS::Record qw( qsearch qsearchs dbh ); use FS::part_svc; use FS::part_export_option; use FS::part_export_machine; use FS::svc_export_machine; -use FS::export_svc; #for export modules, though they should probably just use it themselves use FS::queue; @@ -162,6 +161,10 @@ sub delete { 'link_table' => 'export_nas', 'target_table' => 'nas', 'params' => [], + ) || $self->process_m2m( + 'link_table' => 'export_svc', + 'target_table' => 'part_svc', + 'params' => [], ) || $self->SUPER::delete; if ( $error ) { $dbh->rollback if $oldAutoCommit; @@ -449,24 +452,10 @@ sub part_export_machine { Returns a list of associated FS::export_svc records. -=cut - -sub export_svc { - my $self = shift; - qsearch('export_svc', { 'exportnum' => $self->exportnum } ); -} - =item export_device Returns a list of associated FS::export_device records. -=cut - -sub export_device { - my $self = shift; - qsearch('export_device', { 'exportnum' => $self->exportnum } ); -} - =item part_export_option Returns all options as FS::part_export_option objects (see @@ -695,6 +684,7 @@ sub info { } #default fallbacks... FS::part_export::DID_Common ? +sub can_get_dids { 0; } sub get_dids_can_tollfree { 0; } sub get_dids_can_manual { 0; } sub get_dids_can_edit { 0; } #don't use without can_manual, otherwise the