~sharoonthomas/openerpretail/core

« back to all changes in this revision

Viewing changes to bin/addons/auction/report/lots_bids_phone.xsl

  • Committer: Sharoon Thomas
  • Date: 2009-07-20 06:25:34 UTC
  • Revision ID: sharoonthomas@teagarden.in-20090720062534-j8jq2nmdy63w9o9c
Initial Release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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">
 
3
        <xsl:import href="../../base/report/corporate_defaults.xsl"/>
 
4
        <xsl:template match="/">
 
5
                <xsl:apply-templates select="lots"/>
 
6
        </xsl:template>
 
7
 
 
8
        <xsl:template match="/">
 
9
                <document xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
10
                        <template>
 
11
                                <pageTemplate id="all">
 
12
                                                <frame id="list" x1="1.0cm" y1="6.0cm" width="25.7cm" height="17cm"/>
 
13
                                                <pageGraphics>
 
14
                                                                <xsl:apply-imports/>
 
15
                                                </pageGraphics>
 
16
                                </pageTemplate>
 
17
                        </template>
 
18
 
 
19
                        <stylesheet>
 
20
                                <paraStyle name="small" fontName="Courier" fontSize="12" spaceBefore="0mm" spaceAfter="0mm"/>
 
21
                                <paraStyle name="verysmall" fontSize="11" fontName="Courier" spaceBefore="0mm" spaceAfter="0mm"/>
 
22
                                <paraStyle name="smallest" fontSize="10" fontName="Courier" spaceBefore="-0.5mm" spaceAfter="-0.5mm"/>
 
23
 
 
24
                                <blockTableStyle id="left">
 
25
                                        <blockValign value="TOP"/>
 
26
                                        <blockAlignment value="LEFT"/>
 
27
                                        <blockFont name="Helvetica-Bold" size="10"/>
 
28
                                        <blockTextColor colorName="black"/>
 
29
                                        <lineStyle kind="LINEABOVE" thickness="0.5" colorName="black" start="0,0" stop="-1,0"/>
 
30
                                        <lineStyle kind="LINEBELOW" thickness="0.5" colorName="black"/>
 
31
                                        <blockBackground colorName="(1,1,1)" start="0,0" stop="-1,-1"/>
 
32
                                        <blockBackground colorName="(0.88,0.88,0.88)" start="0,0" stop="-1,0"/>
 
33
                                </blockTableStyle>
 
34
                        </stylesheet>
 
35
 
 
36
                        <story>
 
37
                                <blockTable repeatRows="1" style="left" colWidths="1.8cm,11.0cm,2.3cm,10.5cm">
 
38
                                        <tr>
 
39
                                                <td>
 
40
                                                        <para style="small"><b t="1">Cat. N.</b></para>
 
41
                                                </td><td>
 
42
                                                        <para style="small"><b t="1">Description</b></para>
 
43
                                                </td><td>
 
44
                                                        <para style="small"><b t="1">Est.</b></para>
 
45
                                                </td><td>
 
46
                                                        <para style="small"><b t="1">Orders</b></para>
 
47
                                                </td>
 
48
                                        </tr>
 
49
                                        <xsl:apply-templates select="lots/lot[count(bid[tocall='1'])>0]"/>
 
50
                                </blockTable>
 
51
                        </story>
 
52
                </document>
 
53
        </xsl:template>
 
54
 
 
55
        <xsl:template match="lots/lot[count(bid[tocall='1'])>0]">
 
56
                <tr>
 
57
                        <td>
 
58
                                <para style="verysmall"><xsl:value-of select="number"/></para>
 
59
                        </td><td>
 
60
                                <para style="verysmall"><b><xsl:value-of select="artist"/></b></para>
 
61
                                <para style="verysmall"><b><xsl:value-of select="title"/></b></para>
 
62
                                <para style="verysmall"><xsl:value-of select="substring(desc,0,1024)"/></para>
 
63
                        </td><td>
 
64
                                <para style="verysmall">
 
65
                                        <xsl:if test="est1 != ''">
 
66
                                                <xsl:value-of select="round(est1)"/>
 
67
                                        </xsl:if>
 
68
                                        <xsl:text>-</xsl:text>
 
69
                                        <xsl:if test="est2 != ''">
 
70
                                                <xsl:value-of select="round(est2)"/>
 
71
                                        </xsl:if>
 
72
                                </para>
 
73
                        </td><td>
 
74
                                <xsl:for-each select="lots/bid[tocall='1']">
 
75
                                        <xsl:sort order="descending" data-type="number" select="price"/>
 
76
                                        <para style="smallest">
 
77
                                                <xsl:value-of select="name"/>
 
78
 
 
79
                                                <xsl:text>(</xsl:text><xsl:value-of select="id"/><xsl:text>)</xsl:text>
 
80
 
 
81
                                                <xsl:if test="round(price)&gt;0">
 
82
                                                        <xsl:text> </xsl:text><b><xsl:value-of select="round(price)"/><xsl:text> EUR</xsl:text></b>
 
83
                                                </xsl:if>
 
84
 
 
85
                                                <xsl:if test="tocall='1'">
 
86
                                                        <xsl:text t="1">, TEL:</xsl:text><b><xsl:value-of select="contact"/></b>
 
87
                                                </xsl:if>
 
88
                                        </para>
 
89
                                </xsl:for-each>
 
90
                        </td>
 
91
                </tr>
 
92
        </xsl:template>
 
93
</xsl:stylesheet>
 
 
b'\\ No newline at end of file'