RT# 78356 - fix for email address lookup on V3
authorChristopher Burger <burgerc@freeside.biz>
Tue, 20 Feb 2018 15:46:56 +0000 (10:46 -0500)
committerChristopher Burger <burgerc@freeside.biz>
Tue, 20 Feb 2018 15:46:56 +0000 (10:46 -0500)
FS/FS/part_export/saisei.pm

index fc0dee5..c7ee6f6 100644 (file)
@@ -100,7 +100,7 @@ sub _export_insert {
   my $rateplan = $existing_rateplan ? $existing_rateplan : $self->api_get_rateplan($rateplan_name);
 
   my @email = map { $_->emailaddress } FS::Record::qsearch({
-        'table'     => 'cust_contact',
+        'table'     => 'contact',
         'select'    => 'emailaddress',
         'addl_from' => ' JOIN contact_email USING (contactnum)',
         'hashref'   => { 'custnum' => $cust_main->{Hash}->{custnum}, },
@@ -150,7 +150,7 @@ sub _export_delete {
   $rateplan_name =~ s/\s/_/g;
 
   my @email = map { $_->emailaddress } FS::Record::qsearch({
-        'table'     => 'cust_contact',
+        'table'     => 'contact',
         'select'    => 'emailaddress',
         'addl_from' => ' JOIN contact_email USING (contactnum)',
         'hashref'   => { 'custnum' => $cust_main->{Hash}->{custnum}, },