modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml
changeset 9973 c82872d3f44c
parent 9705 4a45559183de
child 10349 91555b05f01d
--- a/modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml	Thu Jan 20 10:10:44 2011 +0100
+++ b/modules/org.openbravo.client.querylist/src-db/database/sourcedata/OBCQL_WIDGET_QUERY.xml	Thu Jan 20 10:21:28 2011 +0100
@@ -84,6 +84,7 @@
 from OrderLine as ol left join ol.attributeSetValue
 where ol.client.id =:client
 and ol.salesOrder.documentStatus='CO'
+and ol.salesOrder.salesTransaction=false
 and ol.orderedQuantity <> (select coalesce(sum(po3.quantity),0) 
                             from ProcurementPOInvoiceMatch po3
                             where po3.goodsShipmentLine is not null