src-db/database/sourcedata/AD_TABLE.xml
changeset 25457 289b897908c3
parent 25453 23752adde8e7
child 25458 e0dd378785e1
--- a/src-db/database/sourcedata/AD_TABLE.xml	Thu Nov 20 17:13:42 2014 +0100
+++ b/src-db/database/sourcedata/AD_TABLE.xml	Thu Nov 20 17:14:20 2014 +0100
@@ -11791,12 +11791,6 @@
 where io.businessPartner.id = :businessPartnerId 
 and io.processed = true and io.documentStatus <> 'VO' 
 and io.salesTransaction = @isSalesTransaction@ 
-and iol.movementQuantity > coalesce((select sum(ol.orderedQuantity)
-from OrderLine as ol
-left join ol.salesOrder as o
-where ol.goodsShipmentLine = iol
-and o.processed = true
-and o.documentStatus <> 'VO'), 0)
 and @insertion_point_0@
 and @additional_filters@]]></HQLQUERY>
 <!--CDB9DC9655F24DF8AB41AA0ADBD04390-->  <ENTITY_ALIAS><![CDATA[iol]]></ENTITY_ALIAS>