1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format">
6 <xsl:import href="../../custom/corporate_defaults.xsl"/>
7 <xsl:import href="../../base/report/rml_template.xsl"/>
8 <xsl:variable name="page_format">a4_normal</xsl:variable>
10 <xsl:template name="stylesheet">
11 <blockTableStyle id="vat_table">
12 <blockFont name="Helvetica-BoldOblique" size="10" start="0,0" stop="-1,0"/>
13 <blockBackground colorName="grey" start="0,0" stop="-1,0"/>
14 <lineStyle kind="LINEAFTER" colorName="grey" start="0,0" stop="-1,-1"/>
15 <lineStyle kind="LINEBELOW" colorName="grey" start="0,-1" stop="-1,-1"/>
16 <lineStyle kind="LINEBEFORE" colorName="grey" start="0,0" stop="0,-1"/>
17 <blockValign value="TOP"/>
19 <blockTableStyle id="vat_total">
20 <blockBackground colorName="lightgrey" start="0,0" stop="-1,0"/>
21 <blockBackground colorName="lightgrey" start="0,-1" stop="-1,-1"/>
22 <lineStyle kind="LINEAFTER" colorName="grey" start="0,0" stop="-1,-1"/>
23 <lineStyle kind="LINEBELOW" colorName="grey" start="0,-1" stop="-1,-1"/>
24 <lineStyle kind="LINEBEFORE" colorName="grey" start="0,0" stop="0,-1"/>
25 <blockValign value="TOP"/>
29 <xsl:template match="/">
30 <xsl:call-template name="rml" />
33 <xsl:template name="story">
35 <blockTable colWidths="3cm,3cm,3cm,3cm,3cm,3cm" style="vat_table" repeatRows="1">
38 <td>Depositer price</td>
44 <xsl:apply-templates select="/lots/lot[vat='VAT 6%']">
45 <xsl:sort select="number" data-type="number" />
46 </xsl:apply-templates>
48 <blockTable colWidths="3cm,3cm,3cm,3cm,3cm,3cm" style="vat_total">
53 <xsl:value-of select="sum(/lots/lot[vat='VAT 6%'][adjudicated != '']/adjudicated) + sum(/lots/lot[vat='VAT 6%']/commission/amount)" />
56 <xsl:value-of select="sum(/lots/lot[vat='VAT 6%']/commission/amount)" />
59 <xsl:value-of select="sum(/lots/lot[vat='VAT 6%'][adjudicated != '']/adjudicated)" />
62 <xsl:value-of select="sum(/lots/lot[vat='VAT 6%']/expenses/amount)" />
65 <xsl:value-of select="sum(/lots/lot[vat='VAT 6%'][adjudicated != '']/adjudicated) + sum(/lots/lot[vat='VAT 6%']/expenses/amount)" />
70 <blockTable colWidths="3cm,3cm,3cm,3cm,3cm,3cm" style="vat_table" repeatRows="1">
73 <td>Depositer price</td>
79 <xsl:apply-templates select="/lots/lot[vat='VAT 21%']">
80 <xsl:sort select="number" data-type="number"/>
81 </xsl:apply-templates>
83 <blockTable colWidths="3cm,3cm,3cm,3cm,3cm,3cm" style="vat_total">
87 <xsl:value-of select="sum(/lots/lot[vat='VAT 21%'][adjudicated != '']/adjudicated) + sum(/lots/lot[vat='VAT 21%']/commission/amount)" />
88 <xsl:value-of select="vat" />
91 <xsl:value-of select="sum(/lots/lot[vat='VAT 21%']/commission/amount)" />
94 <xsl:value-of select="sum(/lots/lot[vat='VAT 21%'][adjudicated != '']/adjudicated)" />
97 <xsl:value-of select="sum(/lots/lot[vat='VAT 21%']/expenses/amount)" />
100 <xsl:value-of select="sum(/lots/lot[vat='VAT 21%'][adjudicated != '']/adjudicated) + sum(/lots/lot[vat='TVA 21%']/expenses/amount)" />
106 <xsl:template match="lot">
109 <td><xsl:value-of select="number" /></td>
112 <xsl:when test="adjudicated != ''">
113 <xsl:value-of select="number(adjudicated) + sum(commission/amount)" />
116 <xsl:text name="adj">0</xsl:text>
121 <xsl:value-of select="sum(commission/amount)" />
125 <xsl:when test="adjudicated != ''">
126 <xsl:value-of select="adjudicated" />
129 <xsl:text name="adj">0</xsl:text>
134 <xsl:value-of select="sum(expenses/amount)" />
138 <xsl:when test="adjudicated != ''">
139 <xsl:value-of select="number(adjudicated) + sum(expenses/amount)" />
142 <xsl:text name="adj">0</xsl:text>