Author: jleroux
Date: Wed Dec  6 13:30:23 2006
New Revision: 483241

URL: http://svn.apache.org/viewvc?view=rev&rev=483241
Log:
A patch from Ashish Vijaywargiya "Addition of Two lookups in creation of 
inventory item" (https://issues.apache.org/jira/browse/OFBIZ-521).

Modified:
    
incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
    
incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/EditInventoryItem.ftl

Modified: 
incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml?view=diff&rev=483241&r1=483240&r2=483241
==============================================================================
--- 
incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
 (original)
+++ 
incubator/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
 Wed Dec  6 13:30:23 2006
@@ -116,6 +116,11 @@
         <response name="success" type="view" value="LookupFacilityLocation"/>
     </request-map>
 
+    <request-map uri="LookupPartyName">
+       <security https="true" auth="true"/>
+        <response name="success" type="view" value="LookupPartyName"/>
+    </request-map>
+
     <!-- ================ Facility Requests ================= -->
     <request-map uri="FindFacility">
         <security https="true" auth="true"/>
@@ -984,6 +989,7 @@
     <view-map name="LookupProduct" 
page="component://product/widget/catalog/LookupScreens.xml#LookupProduct" 
type="screen"/>
     <view-map name="LookupVariantProduct" 
page="component://product/widget/catalog/LookupScreens.xml#LookupVariantProduct"
 type="screen"/>
     <view-map name="LookupFacilityLocation" 
page="component://product/widget/facility/LookupScreens.xml#LookupFacilityLocation"
 type="screen"/>
+    <view-map name="LookupPartyName" type="screen" 
page="component://party/widget/partymgr/LookupScreens.xml#LookupPartyName"/>
 
     <view-map name="FindFacility" type="screen" 
page="component://product/widget/facility/FacilityScreens.xml#FindFacility"/>
     <view-map name="EditFacility" type="screen" 
page="component://product/widget/facility/FacilityScreens.xml#EditFacility"/>

Modified: 
incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/EditInventoryItem.ftl
URL: 
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/EditInventoryItem.ftl?view=diff&rev=483241&r1=483240&r2=483241
==============================================================================
--- 
incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/EditInventoryItem.ftl
 (original)
+++ 
incubator/ofbiz/trunk/applications/product/webapp/facility/inventory/EditInventoryItem.ftl
 Wed Dec  6 13:30:23 2006
@@ -65,13 +65,18 @@
             <input type="text" name="productId" 
value="${inventoryItemData.productId?if_exists}" size="20" maxlength="20" 
class="inputBox">
             <#if (inventoryItem.productId)?has_content>
                 <a 
href="/catalog/control/EditProduct?productId=${inventoryItem.productId}&externalLoginKey=${externalLoginKey?if_exists}"
 
class="buttontext">[${uiLabelMap.CommonEdit}&nbsp;${uiLabelMap.ProductProduct}&nbsp;${inventoryItem.productId}]</a>
+            <#else>
+                <a 
href="javascript:call_fieldlookup2(document.inventoryItemForm.productId,'LookupProduct');"><img
 src="/images/fieldlookup.gif" width="16" height="16" border="0" 
alt="Lookup"/></a>
             </#if>
         </td>
       </tr>
       <tr>
         <td align="right"><div 
class="tabletext">${uiLabelMap.PartyPartyId}</div></td>
         <td>&nbsp;</td>
-        <td><input type="text" name="partyId" 
value="${inventoryItemData.partyId?if_exists}" size="20" maxlength="20" 
class="inputBox"></td>
+        <td>
+            <input type="text" name="partyId" 
value="${inventoryItemData.partyId?if_exists}" size="20" maxlength="20" 
class="inputBox">
+            <a 
href="javascript:call_fieldlookup2(document.inventoryItemForm.partyId, 
'LookupPartyName');"><img 
src="<@ofbizContentUrl>/images/fieldlookup.gif</@ofbizContentUrl>" width="16" 
height="16" border="0" alt="Lookup"/></a>            
+        </td>
       </tr>
       <#if "SERIALIZED_INV_ITEM" == 
(inventoryItem.inventoryItemTypeId)?if_exists>
           <tr>


Reply via email to