1
<?xml version="1.0" encoding="utf-8"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
4
<xsl:import href="../../custom/corporate_defaults.xsl"/>
5
<xsl:import href="../../base/report/rml_template.xsl"/>
7
<xsl:template name="first_page_frames">
8
<frame id="main" x1="1cm" y1="2.5cm" width="19.0cm" height="23cm"/>
11
<xsl:template match="/">
12
<xsl:call-template name="rml"/>
17
<xsl:template name="stylesheet">
18
<blockTableStyle id="products">
19
<blockFont name="Helvetica-Bold" size="10" start="0,0" stop="-1,0"/>
20
<blockBackground colorName="grey" start="0,0" stop="-1,0"/>
21
<blockTextColor colorName="white" start="0,0" stop="-1,0"/>
22
<blockValign value="TOP"/>
23
<blockAlignment value="CENTER" start="0,0" stop="-1,0"/>
24
<blockAlignment value="RIGHT" start="1,1" stop="-1,-1"/>
25
<lineStyle kind="GRID" colorName="black"/>
29
<xsl:template name="story">
30
<xsl:apply-templates select="lotlist"/>
33
<xsl:template name="lotlist">
35
<setNextTemplate name="other_pages"/>
36
<xsl:apply-templates select="lot"/>
39
<xsl:template match="lot">
41
<spacer length="1cm"/>
43
<blockTable colWidths="2cm,6cm,2.5cm,2cm,2cm,2cm,2.5cm" style="products" repeatRows="1">
45
<td t="1">Code</td><td t="1">Product</td><td t="1">Variants</td><td t="1">Amount</td><td t="1">UoM</td><td t="1">Unit Price</td><td t="1">Value</td>
47
<xsl:apply-templates select="product"/>
50
<setNextTemplate name="other_pages"/>
53
<setNextTemplate name="first_page"/>
58
<xsl:template match="product">
60
<td><para><xsl:value-of select="code"/></para></td>
61
<td><para><xsl:value-of select="name"/></para></td>
62
<td><para><xsl:value-of select="variants"/></para></td>
63
<td><xsl:value-of select="amount"/></td>
64
<td><xsl:value-of select="uom"/></td>
65
<td><xsl:value-of select="price"/></td>
66
<td><xsl:value-of select="amount * price"/></td>
67
<!-- <td><xsl:value-of select="//product_amount[id=$product_id]/amount"/></td>
68
<td><xsl:value-of select="//product_amount[id=$product_id]/amount * price"/></td> -->