diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-02-20 10:46:56 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-02-20 10:46:56 -0500 |
commit | 906379279f9c1de0254d58313e97435aed2329e1 (patch) | |
tree | 90e3e0cbd49552df8876014ee20b43f7158ce631 | |
parent | 7331f919ceb91069b9ac68ad1218c344ea4342b1 (diff) |
RT# 78356 - fix for email address lookup on V3
-rw-r--r-- | FS/FS/part_export/saisei.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_export/saisei.pm b/FS/FS/part_export/saisei.pm index fc0dee5ad..c7ee6f638 100644 --- a/FS/FS/part_export/saisei.pm +++ b/FS/FS/part_export/saisei.pm @@ -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}, }, |