You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/04/22 17:10:30 UTC

svn commit: r531195 - /ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

Author: jaz
Date: Sun Apr 22 08:10:29 2007
New Revision: 531195

URL: http://svn.apache.org/viewvc?view=rev&rev=531195
Log:
added inventory item info for shipped items (including serial number if one exists)

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl?view=diff&rev=531195&r1=531194&r2=531195
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/orderitems.ftl Sun Apr 22 08:10:29 2007
@@ -210,6 +210,7 @@
                   </td>
                 </#if>
               </tr>
+
               <#-- show info from workeffort -->
               <#assign workOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment")?if_exists>
               <#if workOrderItemFulfillments?has_content>
@@ -230,6 +231,7 @@
                       <#break><#-- need only the first one -->
                   </#list>
               </#if>
+
               <#-- show linked order lines -->
               <#assign linkedOrderItemsTo = delegator.findByAnd("OrderItemAssoc", Static["org.ofbiz.base.util.UtilMisc"].toMap("orderId", orderItem.getString("orderId"),
                                                                                                                                "orderItemSeqId", orderItem.getString("orderItemSeqId")))>
@@ -265,6 +267,7 @@
                   </tr>
                 </#list>
               </#if>
+
               <#-- show linked requirements -->
               <#assign linkedRequirements = orderItem.getRelated("OrderRequirementCommitment")?if_exists>
 
@@ -378,7 +381,7 @@
                 </#list>
               </#if>
 
-              <!-- display the ship before/after dates -->
+              <#-- display the ship before/after dates -->
               <#if orderItem.shipAfterDate?exists>
               <tr>
                 <td align="right" colspan="2">
@@ -464,7 +467,7 @@
                 </#list>
               </#if>
 
-              <#-- now show item issuances per line item -->
+              <#-- now show item issuances (shipment) per line item -->
               <#assign itemIssuances = itemIssuancesPerItem.get(orderItem.get("orderItemSeqId"))?if_exists>
               <#if itemIssuances?has_content>
                 <#list itemIssuances as itemIssuance>
@@ -476,6 +479,32 @@
                           <a target="facility" href="/facility/control/ViewShipment?shipmentId=${itemIssuance.shipmentId}&amp;externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${itemIssuance.shipmentId}</a>:${itemIssuance.shipmentItemSeqId?if_exists}
                         <#else>
                           <b><i>${uiLabelMap.OrderIssuedWithoutShipment}</i></b>
+                        </#if>
+                      </div>
+                    </td>
+                    <td align="center">
+                      <div class="tabletext" style="font-size: xx-small;">${itemIssuance.quantity?string.number}&nbsp;</div>
+                    </td>
+                    <td>&nbsp;</td>
+                    <td>&nbsp;</td>
+                    <td>&nbsp;</td>
+                  </tr>
+                </#list>
+              </#if>
+
+               <#-- now show item issuances (inventory item) per line item -->
+               <#if itemIssuances?has_content>
+                <#list itemIssuances as itemIssuance>
+                  <tr>
+                    <td align="right" colspan="2">
+                      <div class="tabletext" style="font-size: xx-small;">
+                        <#if itemIssuance.inventoryItemId?has_content>
+                          <#assign inventoryItem = itemIssuance.getRelatedOne("InventoryItem")/>
+                          <b><i>${uiLabelMap.FacilityInventory}</i>:</b>
+                            <a href="/facility/control/EditInventoryItem?inventoryItemId=${itemIssuance.inventoryItemId}&amp;externalLoginKey=${externalLoginKey}" class="buttontext" style="font-size: xx-small;">${itemIssuance.inventoryItemId}</a>
+                            <b><i>${uiLabelMap.OrderShipGroup}</i>:</b> ${itemIssuance.shipGroupSeqId}
+                            <#if (inventoryItem.serialNumber?has_content)><br><b><i>${uiLabelMap.SerialNumber}</li>:</b> ${inventoryItem.serialNumber}&nbsp;</#if>                                                      
+
                         </#if>
                       </div>
                     </td>