@@ -, +, @@ --- acqui/basket.pl | 12 ++++++- .../prog/en/modules/acqui/basket.tt | 33 +++++++++++++++---- 2 files changed, 37 insertions(+), 8 deletions(-) --- a/acqui/basket.pl +++ a/acqui/basket.pl @@ -94,7 +94,17 @@ my $bookseller = Koha::Acquisition::Booksellers->find( $booksellerid ); my $schema = Koha::Database->new()->schema(); my $rs = $schema->resultset('VendorEdiAccount')->search( { vendor_id => $booksellerid, } ); -$template->param( ediaccount => ($rs->count > 0)); +my $ediaccount = ( $rs->count > 0 ); +$template->param( ediaccount => $ediaccount ); +if ($ediaccount) { + my @eans = $schema->resultset('EdifactEan')->search( + {}, + { + join => 'branch', + } + ); + $template->param( eans => \@eans ); +} unless (CanUserManageBasket($loggedinuser, $basket, $userflags)) { $template->param( --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -110,13 +110,32 @@ [% PROCESS csv_export %] [% IF Koha.Preference('EDIFACT') && ediaccount %] -
+