Export leadquantity only when we have weights

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-12-13 16:17:14 +02:00 committed by Dirk Hohndel
parent aa76bbaa97
commit 0a99c26590

View file

@ -583,7 +583,9 @@
</visibility>
<equipmentused>
<leadquantity>
<xsl:value-of select="sum(xt:node-set($trimmedweightlist))"/>
<xsl:if test="sum(xt:node-set($trimmedweightlist)) >= 0">
<xsl:value-of select="sum(xt:node-set($trimmedweightlist))"/>
</xsl:if>
</leadquantity>
</equipmentused>