From 7cea4cd95e54bf805db56e2e4efcff59217809a4 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 17 Mar 2020 09:47:46 +0100
Subject: [PATCH] Bug 18177: remove aqbooksellers.bookselleremail

---
 C4/Letters.pm                  | 1 -
 Koha/Acquisition/Bookseller.pm | 1 -
 t/db_dependent/Bookseller.t    | 1 -
 3 files changed, 3 deletions(-)

diff --git a/C4/Letters.pm b/C4/Letters.pm
index 0233ef52f4..fa54971135 100644
--- a/C4/Letters.pm
+++ b/C4/Letters.pm
@@ -450,7 +450,6 @@ sub SendAlerts {
 
         my @email;
         my @cc;
-        push @email, $databookseller->{bookselleremail} if $databookseller->{bookselleremail};
         push @email, $datacontact->{email}           if ( $datacontact && $datacontact->{email} );
         unless (@email) {
             warn "Bookseller $dataorders->[0]->{booksellerid} without emails";
diff --git a/Koha/Acquisition/Bookseller.pm b/Koha/Acquisition/Bookseller.pm
index 9fe5caccf9..a96806bb50 100644
--- a/Koha/Acquisition/Bookseller.pm
+++ b/Koha/Acquisition/Bookseller.pm
@@ -82,7 +82,6 @@ on the API.
 
 sub to_api_mapping {
     return {
-        bookselleremail => undef,
         currency        => undef,
         listprice       => 'list_currency',
         invoiceprice    => 'invoice_currency',
diff --git a/t/db_dependent/Bookseller.t b/t/db_dependent/Bookseller.t
index 33324dd3bd..3bb98bdd6f 100644
--- a/t/db_dependent/Bookseller.t
+++ b/t/db_dependent/Bookseller.t
@@ -766,7 +766,6 @@ sub field_filter {
     my ($struct) = @_;
 
     for my $field (
-        'bookselleremail',
         'currency',        'invoiceprice',
         'listprice',       'contacts'
       )
-- 
2.20.1