Bug 9824 - Hide basket with no expected items in basqket list by bookseller
Before patch you will see in acqui/booksellers.pl all the baskets ever created. After the patch you will see in acqui/booksellers.pl only the basket with expected items. Test plan : * Create a basket with some orders lines You should see this basket in acqui/booksellers.pl * receive or cancel all the line in this basket This basket shouldn't appear any more in acqui/booksellers.pl Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> (cherry picked from commita0a6d6e64b) Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> (cherry picked from commite1dbabdb7a) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> (cherry picked from commite1dbabdb7a) As this is requested, and applies well in 3.10.x, I push it with it's followups. Signed-off-by: Chris Hall <followingthepath@gmail.com> (cherry picked from commitc80b91c3e0)
This commit is contained in:
parent
34bcbce851
commit
b5ee276f9f
|
|
@ -494,7 +494,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue