TECH.RegisteredObject,TECH.Iterator AXimpl.Controle.Order.Ax.AxOrderLijnConverter 1 TECH.ResultSet 1 AXimpl.SqlQueryConnection 1 SqlQueryConnection:AXimpl.SqlQueryConnection 1 1 %Status 1 1 '' " _" join INVENTDIM dim " _" on dim.DATAAREAID = SALESLINE.DATAAREAID and dim.INVENTDIMID = SALESLINE.INVENTDIMID and dim.Partition=SALESLINE.PARTITION" _" left outer join INVENTDIM dimbase " _" on dimbase.DATAAREAID = dim.DATAAREAID and dimbase.Partition=dim.PARTITION and dim.ConfigID =dimbase.configid and dimbase.WMSLOCATIONID='' and dimbase.inventlocationid ='' and dimbase.inventsiteid='' and dimbase.inventbatchid='' and dimbase.inventsizeid='' and dimbase.recversion=dim.recversion" _" left outer join INVENTDIMCOMBINATION as Idc " _" on Idc.DATAAREAID= SALESLINE.DATAAREAID and Idc.ITEMID=SALESLINE.ITEMID and Idc.INVENTDIMID=DimBase.INVENTDIMID and idc.PARTITION = SALESLINE.PARTITION" _" left outer join ECORESPRODUCT ResProduct " _" on idc.DISTINCTPRODUCTVARIANT= ResProduct.RecID and ResProduct.PARTITION = SALESLINE.PARTITION " _" left outer join ECORESPRODUCTTRANSLATION transNL " _" on transNL.PRODUCT = Resproduct.RECID and transNL.LANGUAGEID='nl-be' and inventdim.partition=transNL.PARTITION " _" left outer join LOGISTICSPOSTALADDRESS on LOGISTICSPOSTALADDRESS.RECID = salesline.DELIVERYPOSTALADDRESS and LOGISTICSPOSTALADDRESS.PARTITION = salesline.PARTITION " _" left outer join ADUCONFIGUREDPRODUCTLOG ADUConfiguredProductLog " _" on idc.DISTINCTPRODUCTVARIANT= ADUConfiguredProductLog.EcoResDistinctProductVariant and ADUConfiguredProductLog.PARTITION = SALESLINE.PARTITION and ADUConfiguredProductLog.DATAAREAID = salesline.DATAAREAID and ADUConfiguredProductLog.Active = 1" _" join INVENTTRANSORIGIN on INVENTTRANSORIGIN.INVENTTRANSID = salesline.INVENTTRANSID and INVENTTRANSORIGIN.DATAAREAID = salesline.DATAAREAID and " _" INVENTTRANSORIGIN.PARTITION = salesline.PARTITION " _" Left outer join (select ito.INVENTTRANSID, -sum(qty) as QtyOpBon " _" from inventtrans it " _" join INVENTTRANSORIGIN ito " _" on it.INVENTTRANSORIGIN = ito.recid and ito.DATAAREAID='vhbe' and ito.PARTITION=5637144576 " _" where it.PARTITION = 5637144576 and it.DATAAREAID = 'vhbe' and it.StatusIssue=3 " _" group by ito.INVENTTRANSID) it2 " _" on salesline.inventtransid = it2.INVENTTRANSID " _" where salestable.SALESSTATUS = 1 and salestable.SALESTYPE = 3 and salesline.SALESQTY >= 0 " _" and salesLine.DATAAREAID = 'VHBE' and salesline.PARTITION = '5637144576' " _" and salesline.REMAINSALESPHYSICAL > 0 " _" and not exists (select 'x' from adushoppingcart sc where sc.dataareaid = 'vhbe' and sc.partition = 5637144576 and sc.salesid = salestable.salesid and sc.shoppingcartstatus <> 4 and sc.SOURCESERVICE in (0,1)) " _" order by salesline.inventtransid" Set ..ResultSet = ..SqlQueryConnection.GetResultSet(SqlStatement) ]]> %Boolean 0) ]]> AXimpl.Controle.Order.OrderLijn 1 1 %Status 1