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
This commit is contained in:
@@ -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>
|
||||
<#if availableToPromiseMap.get(cartLine.getProductId()) <= 0 >
|
||||
<#if (availableToPromiseMap.get(cartLine.getProductId()) <= 0) && (shoppingCart.getOrderType() == "SALES_ORDER")>
|
||||
<span style="color: red;">[${cartLine.getQuantity()} ${uiLabelMap.OrderBackOrdered}]</span>
|
||||
<#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())>
|
||||
<span style="color: red;">[${backOrdered?if_exists} ${uiLabelMap.OrderBackOrdered}]</span>
|
||||
</#if>
|
||||
|
||||
Reference in New Issue
Block a user