Author: ashish
Date: Sat May 21 13:28:45 2016
New Revision: 1744940
URL:
http://svn.apache.org/viewvc?rev=1744940&view=revLog:
Applied patch from jira issue - OFBIZ-5290 - show quantityUom in BoM.
Thanks Pierre for creating the patch and thanks Aman, Yashwant for the contribution.
Modified:
ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl
Modified: ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl?rev=1744940&r1=1744939&r2=1744940&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl (original)
+++ ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl Sat May 21 13:28:45 2016
@@ -251,6 +251,7 @@ function lookupBom() {
<td>${uiLabelMap.CommonThruDate}</td>
<td>${uiLabelMap.CommonSequenceNum}</td>
<td>${uiLabelMap.CommonQuantity}</td>
+ <td>${uiLabelMap.ProductQuantityUom}</td>
<td>${uiLabelMap.ManufacturingScrapFactor}</td>
<td>${uiLabelMap.ManufacturingFormula}</td>
<td>${uiLabelMap.ManufacturingRoutingTask}</td>
@@ -261,6 +262,10 @@ function lookupBom() {
<#list assocFromProducts! as assocFromProduct>
<#assign listToProduct = assocFromProduct.getRelatedOne("AssocProduct", true)>
<#assign curProductAssocType = assocFromProduct.getRelatedOne("ProductAssocType", true)>
+ <#assign product = assocFromProduct.getRelatedOne("AssocProduct", true)>
+ <#if product.quantityUomId?has_content>
+ <#assign quantityUom = product.getRelatedOne("QuantityUom", true)>
+ </#if>
<tr valign="middle"<#if alt_row> class="alternate-row"</#if>>
<td><a href="<@ofbizUrl>EditProductBom?productId=${(assocFromProduct.productIdTo)!}&productAssocTypeId=${(assocFromProduct.productAssocTypeId)!}#components</@ofbizUrl>" class="buttontext">${(assocFromProduct.productIdTo)!}</a></td>
<td><#if listToProduct??><a href="<@ofbizUrl>EditProductBom?productId=${(assocFromProduct.productIdTo)!}&productAssocTypeId=${(assocFromProduct.productAssocTypeId)!}#components</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)!}</a></#if> </td>
@@ -270,6 +275,7 @@ function lookupBom() {
${(assocFromProduct.thruDate)!} </td>
<td> ${(assocFromProduct.sequenceNum)!}</td>
<td> ${(assocFromProduct.quantity)!}</td>
+ <td> <#if (quantityUom.abbreviation)?has_content> ${(quantityUom.abbreviation)!} <#else> ${(quantityUom.uomId)!} </#if></td>
<td> ${(assocFromProduct.scrapFactor)!}</td>
<td> ${(assocFromProduct.estimateCalcMethod)!}</td>
<td> ${(assocFromProduct.routingWorkEffortId)!}</td>