From d6bb28919547df0955b0d04903c72c7f5818c1bc Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 16 Oct 2018 16:27:17 +0100 Subject: [PATCH 2/2] Bug 21580 Pass buyer_ean to create_edi_order create_edi_order requires two parameters to be passed but if vendor was set to auto_order the subroutine was called with basketno only resulting in the error 'no basket or ean passed' - pass the buyer_ean as passed in the quotes message --- Koha/EDI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index 0e632c9294..9bd9d0cfdc 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -541,7 +541,7 @@ sub process_quote { for my $b (@added_baskets) { create_edi_order( { - + ean => $messages->[0]->buyer_ean, basketno => $b, } ); -- 2.17.2