From d343f704b4e8043f51142da0fc221605fbf6ec19 Mon Sep 17 00:00:00 2001 From: Vikas Mayur Date: Wed, 26 Aug 2009 09:52:36 +0000 Subject: [PATCH] Fixed order entry cart page, item backordered information should be shown only for sales order. Applied patch from Ratnesh Upadhyay, part of OFBIZ-2863 (https://issues.apache.org/jira/browse/OFBIZ-2863) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@807946 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/webapp/ordermgr/entry/cart/showcartitems.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl b/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl index 263756f534..cdaac5ea3c 100644 --- a/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl +++ b/applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl @@ -145,10 +145,10 @@ under the License. <#if product.productTypeId == "MARKETING_PKG_AUTO" || product.productTypeId == "MARKETING_PKG_PICK"> ${uiLabelMap.ProductMarketingPackageATP} = ${mktgPkgATPMap.get(productId)}, ${uiLabelMap.ProductMarketingPackageQOH} = ${mktgPkgQOHMap.get(productId)} - <#if availableToPromiseMap.get(cartLine.getProductId()) <= 0 > + <#if (availableToPromiseMap.get(cartLine.getProductId()) <= 0) && (shoppingCart.getOrderType() == "SALES_ORDER")> [${cartLine.getQuantity()} ${uiLabelMap.OrderBackOrdered}] <#else> - <#if availableToPromiseMap.get(cartLine.getProductId()) < cartLine.getQuantity()> + <#if (availableToPromiseMap.get(cartLine.getProductId()) < cartLine.getQuantity()) && (shoppingCart.getOrderType() == "SALES_ORDER")> <#assign backOrdered = cartLine.getQuantity() - availableToPromiseMap.get(cartLine.getProductId())> [${backOrdered?if_exists} ${uiLabelMap.OrderBackOrdered}]