You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by si...@apache.org on 2007/03/12 23:18:54 UTC

svn commit: r517425 - /ofbiz/trunk/applications/product/webapp/facility/facility/FindFacilityTransfers.ftl

Author: sichen
Date: Mon Mar 12 15:18:53 2007
New Revision: 517425

URL: http://svn.apache.org/viewvc?view=rev&rev=517425
Log:
Add some fields such as productId, product name, and quantity to lists of inventory transfers to make it more informative.

Modified:
    ofbiz/trunk/applications/product/webapp/facility/facility/FindFacilityTransfers.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/facility/FindFacilityTransfers.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/facility/FindFacilityTransfers.ftl?view=diff&rev=517425&r1=517424&r2=517425
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/facility/FindFacilityTransfers.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/facility/FindFacilityTransfers.ftl Mon Mar 12 15:18:53 2007
@@ -72,9 +72,14 @@
             <tr>
             <td><div class="tabletext"><b>${uiLabelMap.ProductTransferId}</b></div></td>
             <td><div class="tabletext"><b>${uiLabelMap.ProductItem}</b></div></td>      
+            <td><div class="tabletext"><b>${uiLabelMap.ProductProductId}</b></div></td>      
+            <td><div class="tabletext"><b>${uiLabelMap.ProductInternalName}</b></div></td>      
+            <td><div class="tabletext"><b>${uiLabelMap.ProductSerialAtpQoh}</b></div></td>      
             <td><div class="tabletext"><b>${uiLabelMap.CommonTo}</b></div></td>
             <td><div class="tabletext"><b>${uiLabelMap.CommonSendDate}</b></div></td>
+            <#if !completeRequested>
             <td><div class="tabletext"><b>${uiLabelMap.CommonStatus}</b></div></td>
+            </#if>
             <td align="center">
               <#if completeRequested>
               <span class="tableheadtext">Select<br><input name="selectAll" value="Y" onclick="javascript:toggleAll(this, 'CompleteRequested');" type="checkbox"></span>
@@ -85,20 +90,43 @@
             </tr>
         
             <#list fromTransfers as transfer>
+            <#assign inventoryItem = transfer.getRelatedOne("InventoryItem")?if_exists>
+            <#if inventoryItem?has_content>
+              <#assign product = inventoryItem.getRelatedOne("Product")?if_exists>
+            </#if>
             <tr>
             <td><div class="tabletext"><a href="<@o...@ofbizUrl>" class="buttontext">&nbsp;${(transfer.inventoryTransferId)?if_exists}</a></div></td>
             <td><div class="tabletext"><a href="<@o...@ofbizUrl>" class="buttontext">&nbsp;${(transfer.inventoryItemId)?if_exists}</a></div></td>      
             <td>
+              <#if product?exists>
+              <span class="tabletext">${product.productId}</span>
+              </#if>
+            </td>
+            <td>
+              <#if product?exists>
+              <span class="tabletext">${product.internalName?if_exists}</span>
+              </#if>
+            </td>
+            <td class="tabletext">
+              <#if inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("NON_SERIAL_INV_ITEM")>
+                ${(inventoryItem.availableToPromiseTotal)?if_exists}&nbsp;/&nbsp;${(inventoryItem.quantityOnHandTotal)?if_exists}
+              <#elseif inventoryItem?exists && inventoryItem.inventoryItemTypeId.equals("SERIALIZED_INV_ITEM")>
+                ${inventoryItem.serialNumber?if_exists}
+              </#if>
+            </td>
+            <td>
                 <#assign fac = delegator.findByPrimaryKey("Facility", Static["org.ofbiz.base.util.UtilMisc"].toMap("facilityId", transfer.getString("facilityIdTo")))>
                 <div class="tabletext"><a href="<@o...@ofbizUrl>" class="buttontext">&nbsp;<#if fac?exists>${(fac.facilityName)?if_exists}</#if>&nbsp;[${(transfer.facilityIdTo)?if_exists}]</a></div>
             </td>
             <td><div class="tabletext">&nbsp;${(transfer.sendDate)?if_exists}</div></td>
+            <#if !completeRequested>
             <td>
                 <#if (transfer.statusId)?exists>
                     <#assign transferStatus = delegator.findByPrimaryKey("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", transfer.statusId))>
                     <div class="tabletext">&nbsp;${(transferStatus.get("description",locale))?if_exists}</div>
                 </#if>
             </td>
+            </#if>
             <td align="center"><div class="tabletext">
                 <#if completeRequested>
                 <input type="hidden" name="inventoryTransferId_o_${transfer_index}" value="${transfer.inventoryTransferId}">
@@ -113,10 +141,10 @@
             <#assign rowCount = transfer_index + 1>
             </#list>
             <#if completeRequested>
-            <tr><td colspan="6" align="right">
+            <tr><td colspan="8" align="right">
                 <input type="hidden" name="_rowCount" value="${rowCount}">
                 <input type="hidden" name="_useRowSubmit" value="Y"/>
-                <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonUpdate}"/>
+                <input type="submit" class="smallSubmit" value="${uiLabelMap.ProductComplete}"/>
             </td></tr>
             </#if>
         </table>