[OFBiz] SVN: r7229 - trunk/applications/order/webapp/ordermgr/order
sichen@svn.ofbiz.org
sichen at svn.ofbiz.org
Fri Apr 7 08:33:52 CDT 2006
Author: sichen
Date: 2006-04-07 08:33:49 -0500 (Fri, 07 Apr 2006)
New Revision: 7229
Modified:
trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
Log:
Made sure that order items which are completed do not show up with postive quantity outstanding
Modified: trunk/applications/order/webapp/ordermgr/order/orderitems.ftl
===================================================================
--- trunk/applications/order/webapp/ordermgr/order/orderitems.ftl 2006-04-07 13:24:36 UTC (rev 7228)
+++ trunk/applications/order/webapp/ordermgr/order/orderitems.ftl 2006-04-07 13:33:49 UTC (rev 7229)
@@ -164,9 +164,12 @@
<div class="tabletext">${uiLabelMap.OrderShortfalled}: ${shortfalledQuantity} </div>
</td>
<td>
- <div class="tabletext">${uiLabelMap.OrderShipRequest}: ${orderReadHelper.getItemReservedQuantity(orderItem)} </div>
+ <div class="tabletext">${uiLabelMap.OrderShipRequest}
+ : ${orderReadHelper.getItemReservedQuantity(orderItem)} </div>
<div class="tabletext">${uiLabelMap.OrderQtyShipped}: ${shippedQuantity} </div>
- <div class="tabletext">${uiLabelMap.OrderOutstanding}: ${orderItem.quantity?default(0) - shippedQuantity} </div>
+ <div class="tabletext">${uiLabelMap.OrderOutstanding}:
+ <#-- Make sure digital goods without shipments don't always remainn "outstanding": if item is completed, it must have no outstanding quantity. -->
+ <#if (orderItem.statusId != null) && (orderItem.statusId == "ITEM_COMPLETED")>0<#else>${orderItem.quantity?default(0) - shippedQuantity}</#if> </div>
<div class="tabletext">${uiLabelMap.OrderInvoiced}: ${orderReadHelper.getOrderItemInvoicedQuantity(orderItem)} </div>
<div class="tabletext">${uiLabelMap.OrderReturned}: ${returnQuantityMap.get(orderItem.orderItemSeqId)?default(0)} </div>
</td>
More information about the Svn
mailing list