src-db/database/sourcedata/AD_TAB.xml
changeset 30926 a57c4aa5d672
parent 30847 e347a6c6f2ba
parent 30800 63ddb0c964e8
child 31466 4607d1985765
--- a/src-db/database/sourcedata/AD_TAB.xml	Fri Dec 02 11:00:27 2016 +0100
+++ b/src-db/database/sourcedata/AD_TAB.xml	Fri Dec 02 12:32:08 2016 +0100
@@ -17364,7 +17364,7 @@
 <!--9195CC43B5A4419195030A4DB17D8737-->  <UIPATTERN><![CDATA[STD]]></UIPATTERN>
 <!--9195CC43B5A4419195030A4DB17D8737-->  <HQLWHERECLAUSE><![CDATA[COALESCE(e.goodsShipment.id, @MaterialMgmtShipmentInOut.id@) = @MaterialMgmtShipmentInOut.id@
 AND @MaterialMgmtShipmentInOut.businessPartner@ = e.businessPartner.id
-AND e.pending <> 0 AND (e.storageBin is null OR ad_org_isinnaturaltree(@MaterialMgmtShipmentInOut.organization@, (select organization.id from Locator a where a.id = e.storageBin.id), @MaterialMgmtShipmentInOut.client@) = 'Y')]]></HQLWHERECLAUSE>
+AND (e.storageBin is null OR ad_org_isinnaturaltree(@MaterialMgmtShipmentInOut.organization@, locatorOrg, @MaterialMgmtShipmentInOut.client@) = 'Y')]]></HQLWHERECLAUSE>
 <!--9195CC43B5A4419195030A4DB17D8737-->  <HQLORDERBYCLAUSE><![CDATA[obSelected DESC, rMOrderNo, lineNo]]></HQLORDERBYCLAUSE>
 <!--9195CC43B5A4419195030A4DB17D8737-->  <SHOWPARENTBUTTONS><![CDATA[Y]]></SHOWPARENTBUTTONS>
 <!--9195CC43B5A4419195030A4DB17D8737-->  <DISABLE_PARENT_KEY_PROPERTY><![CDATA[N]]></DISABLE_PARENT_KEY_PROPERTY>