From 15963448e246a642bf254a47967d7b810ae34f31 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 28 May 2014 18:28:29 +0000 Subject: [PATCH] Bug 11169: (follow-up) only count orders that have been placed This patch ensures that only orders that have been placed (i.e., orders whose basket is closed) are counted in the OPACAcquisitionsDetails display. To test: [1] Turn on OPACAcquisitionsDetails and set AcqCreateItem to 'ordering'. [2] Create an order for a record, but do not close the basket. [3] View the record in the OPAC. It should not display any order count. [4] Close the bakset. [5] View the record in the OPAC again. This time, it should display the count of items on order. Signed-off-by: Galen Charlton --- opac/opac-detail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 4a193b8..224bf82 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -603,7 +603,7 @@ my ( @itemnumbers_on_order ); if ( C4::Context->preference('OPACAcquisitionDetails' ) ) { my $orders = C4::Acquisition::SearchOrders({ biblionumber => $biblionumber, - pending => 1, + ordered => 1, }); my $total_quantity = 0; for my $order ( @$orders ) { -- 1.7.10.4