Author: mor
Date: Fri Jul 24 08:38:27 2009
New Revision: 797360

URL: http://svn.apache.org/viewvc?rev=797360&view=rev
Log:
Minor Improvements: Using Order Entry process when user add an item to cart and 
if the quantity added is greater then ATP then the item is highlighted as 
Backordered in red
along with the quantities that will go on backorder in the cart. Patch from 
Arun Patidar. 

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl

Modified: 
ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl?rev=797360&r1=797359&r2=797360&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl 
(original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl 
Fri Jul 24 08:38:27 2009
@@ -145,6 +145,14 @@
                     <#if product.productTypeId == "MARKETING_PKG_AUTO" || 
product.productTypeId == "MARKETING_PKG_PICK">
                     ${uiLabelMap.ProductMarketingPackageATP} = 
${mktgPkgATPMap.get(productId)}, ${uiLabelMap.ProductMarketingPackageQOH} = 
${mktgPkgQOHMap.get(productId)}
                     </#if>
+                    <#if availableToPromiseMap.get(cartLine.getProductId()) <= 
0 >
+                      <span style="color: 
red;">[${cartLine.getQuantity()}&nbsp;${uiLabelMap.OrderBackOrdered}]</span>
+                    <#else>
+                      <#if availableToPromiseMap.get(cartLine.getProductId()) 
< cartLine.getQuantity()>
+                        <#assign backOrdered = cartLine.getQuantity() - 
availableToPromiseMap.get(cartLine.getProductId())>
+                        <span style="color: 
red;">[${backOrdered?if_exists}&nbsp;${uiLabelMap.OrderBackOrdered}]</span>
+                      </#if>
+                    </#if>
                   </div>
                 </td>
               </tr>


Reply via email to