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}]