Bug 19340: Read basket details of transfer partner
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 19 Sep 2017 11:58:12 +0000 (12:58 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Oct 2017 19:02:51 +0000 (16:02 -0300)
Details of the basket an order is tranferred to or from
are displayed in the basket display.
Unfortunately these details were not being read so
the display incorrectly showed the details
of the current owning basket.

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

acqui/basket.pl

index 1f97d18..0719618 100755 (executable)
@@ -504,6 +504,7 @@ sub get_order_infos {
     foreach my $key (qw(transferred_from transferred_to)) {
         if ($line{$key}) {
             my $order = GetOrder($line{$key});
+            my $basket = GetBasket($order->{basketno});
             my $bookseller = Koha::Acquisition::Booksellers->find( $basket->{booksellerid} );
             $line{$key} = {
                 order => $order,