Author: diveshdutta
Date: Sat Jun 4 10:46:40 2016
New Revision: 1746804
URL: http://svn.apache.org/viewvc?rev=1746804&view=rev
Log:
[OFBIZ-7105] Fixed: Purchase Return shipments not allowing to select received
inventory within auto-completer search against the returned item, Added support
to enable auto-completer at Issue inventory item section, now user is able to
search inventories supplied by the given vendor and having ATP > 0 via
auto-completer.
Added:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy
Modified:
ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml
Added:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy?rev=1746804&view=auto
==============================================================================
---
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy
(added)
+++
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy
Sat Jun 4 10:46:40 2016
@@ -0,0 +1,7 @@
+import org.ofbiz.entity.condition.EntityCondition;
+import org.ofbiz.entity.condition.EntityOperator;
+
+exprList = [EntityCondition.makeCondition("availableToPromiseTotal",
EntityOperator.GREATER_THAN, BigDecimal.ZERO),
+ EntityCondition.makeCondition("partyId", EntityOperator.EQUALS,
parameters.partyId)];
+context.andCondition = EntityCondition.makeCondition(exprList,
EntityOperator.AND);
+
\ No newline at end of file
Modified: ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml?rev=1746804&r1=1746803&r2=1746804&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml
(original)
+++ ofbiz/trunk/applications/product/widget/facility/LookupScreens.xml Sat Jun
4 10:46:40 2016
@@ -107,6 +107,11 @@ under the License.
<property-map resource="CommonUiLabels" map-name="uiLabelMap"
global="true"/>
<property-map resource="ProductUiLabels" map-name="uiLabelMap"
global="true"/>
<set field="title"
value="${uiLabelMap.ProductLookupInventory}"/>
+ <set field="queryString" from-field="result.queryString"/>
+ <set field="entityName" value="InventoryItem"/>
+ <set field="searchFields" value="[inventoryItemId]"/>
+ <script
location="component://product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy"/>
+ <set field="andCondition" value="${context.andCondition}"/>
<script
location="component://product/webapp/facility/WEB-INF/actions/inventory/LookupInventoryItems.groovy"/>
</actions>
<widgets>