svn commit: r1746825 - in /ofbiz/branches/release15.12/applications/product: webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy widget/facility/LookupScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1746825 - in /ofbiz/branches/release15.12/applications/product: webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy widget/facility/LookupScreens.xml

diveshdutta
Author: diveshdutta
Date: Sat Jun  4 13:40:14 2016
New Revision: 1746825

URL: http://svn.apache.org/viewvc?rev=1746825&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 greater than  0 via auto-completer.

Added:
    ofbiz/branches/release15.12/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy
Modified:
    ofbiz/branches/release15.12/applications/product/widget/facility/LookupScreens.xml

Added: ofbiz/branches/release15.12/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy?rev=1746825&view=auto
==============================================================================
--- ofbiz/branches/release15.12/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy (added)
+++ ofbiz/branches/release15.12/applications/product/webapp/catalog/WEB-INF/actions/GetSupplierInventories.groovy Sat Jun  4 13:40:14 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/branches/release15.12/applications/product/widget/facility/LookupScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/product/widget/facility/LookupScreens.xml?rev=1746825&r1=1746824&r2=1746825&view=diff
==============================================================================
--- ofbiz/branches/release15.12/applications/product/widget/facility/LookupScreens.xml (original)
+++ ofbiz/branches/release15.12/applications/product/widget/facility/LookupScreens.xml Sat Jun  4 13:40:14 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>