From bed4c271841e7efcfe6ead21a12ef7d510eef931 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 Signed-off-by: Chris Cormack Signed-off-by: Tomas Cohen Arazi --- 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 4a193b8be1..224bf82427 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 ) { -- 2.39.5