(quantity > quantityreceived OR quantityreceived IS NULL)
GROUP BY aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber,
tleft,
ecost, budgetdate, entrydate,
ecost_tax_included, budgetdate, entrydate,
aqbasket.booksellerid,
aqbooksellers.name,
itype,
datereceived IS NOT NULL
budgetdate, entrydate,
title,
aqorders.invoiceid,
aqinvoices.invoicenumber,
quantityreceived,
unitprice,
unitprice_tax_included,
datereceived,
aqbooksellers.name
-