svn commit: r1744940 - /ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1744940 - /ofbiz/trunk/applications/manufacturing/template/bom/EditProductBom.ftl

ashish-18
Author: ashish
Date: Sat May 21 13:28:45 2016
New Revision: 1744940

URL: http://svn.apache.org/viewvc?rev=1744940&view=rev
Log:
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)!}&amp;productAssocTypeId=${(assocFromProduct.productAssocTypeId)!}#components</@ofbizUrl>" class="buttontext">${(assocFromProduct.productIdTo)!}</a></td>
         <td><#if listToProduct??><a href="<@ofbizUrl>EditProductBom?productId=${(assocFromProduct.productIdTo)!}&amp;productAssocTypeId=${(assocFromProduct.productAssocTypeId)!}#components</@ofbizUrl>" class="buttontext">${(listToProduct.internalName)!}</a></#if>&nbsp;</td>
@@ -270,6 +275,7 @@ function lookupBom() {
         ${(assocFromProduct.thruDate)!}&nbsp;</td>
         <td>&nbsp;${(assocFromProduct.sequenceNum)!}</td>
         <td>&nbsp;${(assocFromProduct.quantity)!}</td>
+        <td>&nbsp;<#if (quantityUom.abbreviation)?has_content> ${(quantityUom.abbreviation)!} <#else> ${(quantityUom.uomId)!} </#if></td>
         <td>&nbsp;${(assocFromProduct.scrapFactor)!}</td>
         <td>&nbsp;${(assocFromProduct.estimateCalcMethod)!}</td>
         <td>&nbsp;${(assocFromProduct.routingWorkEffortId)!}</td>