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 2006/08/30 20:22:51 UTC

svn commit: r438576 - /incubator/ofbiz/trunk/applications/product/webapp/facility/shipment/PackOrder.ftl

Author: sichen
Date: Wed Aug 30 11:22:51 2006
New Revision: 438576

URL: http://svn.apache.org/viewvc?rev=438576&view=rev
Log:
Order packing now takes into account previously shipped quantities when asking user how many to pack

Modified:
    incubator/ofbiz/trunk/applications/product/webapp/facility/shipment/PackOrder.ftl

Modified: incubator/ofbiz/trunk/applications/product/webapp/facility/shipment/PackOrder.ftl
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/webapp/facility/shipment/PackOrder.ftl?rev=438576&r1=438575&r2=438576&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/product/webapp/facility/shipment/PackOrder.ftl (original)
+++ incubator/ofbiz/trunk/applications/product/webapp/facility/shipment/PackOrder.ftl Wed Aug 30 11:22:51 2006
@@ -186,13 +186,14 @@
               <td><div class="tableheadtext">${uiLabelMap.ProductProductId}</td>
               <td><div class="tableheadtext">${uiLabelMap.ProductDescription}</td>
               <td align="right"><div class="tableheadtext">${uiLabelMap.ProductOrderedQuantity}</td>
+              <td align="right"><div class="tableheadtext">${uiLabelMap.ProductQuantityShipped}</td>
               <td align="right"><div class="tableheadtext">${uiLabelMap.ProductPackedQty}</td>
               <td>&nbsp;</td>
               <td align="center"><div class="tableheadtext">${uiLabelMap.ProductPackQty}</td>
               <td align="center"><div class="tableheadtext">${uiLabelMap.ProductPackage}</td>
             </tr>
             <tr>
-              <td colspan="9">
+              <td colspan="10">
                 <hr class="sepbar"/>
               </td>
             </tr>
@@ -209,10 +210,11 @@
                 <td><div class="tabletext">${orderItem.productId?default("N/A")}</td>
                 <td><div class="tabletext">${orderItem.itemDescription?if_exists}</td>
                 <td align="right"><div class="tabletext">${orderItemQuantity}</td>
+                <td align="right"><div class="tabletext">${shippedQuantity}</td>
                 <td align="right"><div class="tabletext">${packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId)}</td>
                 <td>&nbsp;&nbsp;</td>
                 <td align="center">
-                  <#assign inputQty = (orderItemQuantity - packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId))>
+                  <#assign inputQty = (orderItemQuantity - shippedQuantity - packingSession.getPackedQuantity(orderId, orderItem.orderItemSeqId, shipGroupSeqId))>
                   <input type="text" class="inputBox" size="7" name="qty_${orderItem.orderItemSeqId}" value="${inputQty}">
                 </td>
                 <td align="center">
@@ -227,9 +229,9 @@
                 <input type="hidden" name="prd_${orderItem.orderItemSeqId}" value="${orderItem.productId?if_exists}">
               </tr>
             </#list>
-            <tr><td colspan="9">&nbsp;</td></tr>
+            <tr><td colspan="10">&nbsp;</td></tr>
             <tr>
-              <td colspan="9" align="right">
+              <td colspan="10" align="right">
                 <input type="submit" value="${uiLabelMap.ProductPackItem}">
                 &nbsp;
                 <input type="button" value="${uiLabelMap.CommonClear}" onclick="javascript:document.clearPackForm.submit();"/>