From 248373506eb05039acdc54e65a6825b714ae61b6 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 16 Oct 2018 16:27:17 +0100 Subject: [PATCH] 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 Signed-off-by: Brendan Gallagher Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- Koha/EDI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index 54edf00aa7..5770d7dd52 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.39.5