planner r870 - in trunk: . data/stylesheets



Author: mvdpot
Date: Sun Jan 13 14:22:11 2008
New Revision: 870
URL: http://svn.gnome.org/viewvc/planner?rev=870&view=rev

Log:
2008-01-13  Maurice van der Pot  <griffon26 kfk4ever com>

	* data/stylesheets/html1_tasks.xsl: fix calculation of task costs in
	exported HTML for tasks worked on by multiple people (bug #499090).



Modified:
   trunk/ChangeLog
   trunk/data/stylesheets/html1_tasks.xsl

Modified: trunk/data/stylesheets/html1_tasks.xsl
==============================================================================
--- trunk/data/stylesheets/html1_tasks.xsl	(original)
+++ trunk/data/stylesheets/html1_tasks.xsl	Sun Jan 13 14:22:11 2008
@@ -33,7 +33,8 @@
       
       <xsl:variable name="std-rate" select="$std-rates[position()=$level]"/>
       <xsl:variable name="unit" select="$units[position()=$level] div 100"/>
-      <xsl:value-of select="($std-rate * $unit * $work) + $cost"/>
+      <xsl:variable name="totalunits" select="sum($units) div 100"/>
+      <xsl:value-of select="($std-rate * $unit * $work) div $totalunits + $cost"/>
     </xsl:otherwise>
   </xsl:choose>
 </xsl:template>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]