From aa14f007ee4233f84c8d196d87120c9316fb68ea Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Thu, 21 Mar 2013 14:47:43 +0100 Subject: [PATCH] Bug 9824 - Hide basket with no expected items in basqket list by bookseller --- C4/Acquisition.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 4a9eae6..0da150f 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -595,7 +595,8 @@ sub GetBasketsInfosByBookseller { ) AS expected_items FROM aqbasket LEFT JOIN aqorders ON aqorders.basketno = aqbasket.basketno - WHERE booksellerid = ? + WHERE booksellerid = ? AND ( aqorders.quantity > aqorders.quantityreceived OR quantityreceived IS NULL) + AND datecancellationprinted IS NULL GROUP BY aqbasket.basketno }; my $sth = $dbh->prepare($query); -- 1.7.2.5