Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
xsl for ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 28, 2018
1 parent 7fd555b commit 587daa2
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions xsl/pm/cost/ledger.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,11 @@ SOFTWARE.
<th>
<xsl:text>ID</xsl:text>
</th>
<th>
<xsl:text>Created</xsl:text>
</th>
<th style="text-align:right">
<xsl:text>Amount</xsl:text>
</th>
<th>
<xsl:text>Dt</xsl:text>
</th>
<th>
<xsl:text>Ct</xsl:text>
<xsl:text>Dt/Ct</xsl:text>
</th>
<th>
<xsl:text>Details</xsl:text>
Expand All @@ -128,31 +122,33 @@ SOFTWARE.
</xsl:template>
<xsl:template match="transaction">
<tr>
<td style="text-align:right">
<td>
<xsl:value-of select="@id"/>
<xsl:if test="@parent">
<sub>
<xsl:value-of select="@parent"/>
</sub>
</xsl:if>
</td>
<td>
<xsl:call-template name="date">
<xsl:with-param name="iso" select="created"/>
</xsl:call-template>
<span style="display:block;font-size:0.8em">
<xsl:call-template name="date">
<xsl:with-param name="iso" select="created"/>
</xsl:call-template>
</span>
</td>
<td style="text-align:right">
<xsl:value-of select="amount"/>
</td>
<td>
<xsl:value-of select="dt"/>
<xsl:text>:</xsl:text>
<xsl:value-of select="dtx"/>
</td>
<td>
<xsl:value-of select="ct"/>
<xsl:text>:</xsl:text>
<xsl:value-of select="ctx"/>
<span style="display:block">
<xsl:value-of select="dt"/>
<xsl:text>:</xsl:text>
<xsl:value-of select="dtx"/>
</span>
<span style="display:block">
<xsl:value-of select="ct"/>
<xsl:text>:</xsl:text>
<xsl:value-of select="ctx"/>
</span>
</td>
<td>
<xsl:value-of select="details"/>
Expand Down

0 comments on commit 587daa2

Please sign in to comment.