Author: jacopoc
Date: Mon Aug 30 08:24:10 2010
New Revision: 990726
URL:
http://svn.apache.org/viewvc?rev=990726&view=revLog:
Fixed a fop runtime error happening when no materials or no tasks were defined.
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRun.fo.ftl
Modified: ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRun.fo.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRun.fo.ftl?rev=990726&r1=990725&r2=990726&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRun.fo.ftl (original)
+++ ofbiz/trunk/applications/manufacturing/webapp/manufacturing/jobshopmgt/ProductionRun.fo.ftl Mon Aug 30 08:24:10 2010
@@ -80,6 +80,7 @@ under the License.
<fo:block space-after.optimum="0.3cm"><fo:leader leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="0.1mm" color="black"/></fo:block>
<#-- Components -->
+ <#if productionRunComponentsData?has_content>
<fo:table width="22cm">
<fo:table-column column-width="20%"/>
<fo:table-column column-width="40%"/>
@@ -120,9 +121,11 @@ under the License.
</#list>
</fo:table-body>
</fo:table>
+ </#if>
<fo:block space-after.optimum="0.3cm"><fo:leader leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="0.1mm" color="black"/></fo:block>
<#-- Tasks -->
+ <#if productionRunRoutingTasks?has_content>
<fo:table width="100%">
<fo:table-column column-width="20%"/>
<fo:table-column column-width="30%"/>
@@ -160,6 +163,7 @@ under the License.
</#list>
</fo:table-body>
</fo:table>
+ </#if>
<fo:block space-after.optimum="0.3cm"><fo:leader leader-length="100%" leader-pattern="rule" rule-style="solid" rule-thickness="0.1mm" color="black"/></fo:block>
<#if productionRunContents?has_content>