Remove picking.xsl and picking.xml

bzr revid: patelamit2003@gmail.com-20080903085134-6w11rkvc5qg3vrev
This commit is contained in:
apa-tiny
2008-09-03 14:21:34 +05:30
parent 4e63d872cf
commit 8419efc435
2 changed files with 0 additions and 229 deletions
-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<pickinglist>
<picking type="fields" name="id">
<header>
<address type="zoom" name="address_id">
<title type="field" name="title"/>
<name type="field" name="name"/>
<street type="field" name="street"/>
<zip type="field" name="zip"/>
<city type="field" name="city"/>
<state type="field" name="state_id.name"/>
<country type="field" name="country_id.name"/>
</address>
<corporation type="zoom" name="address_id.partner_id">
<id type="field" name="id"/>
<title type="field" name="title"/>
<name type="field" name="name"/>
</corporation>
<picking-id type="field" name="id"/>
<picking-name type="field" name="name"/>
<picking-date type="field" name="date"/>
<expedition-date/>
<command-number>98798413</command-number>
</header>
<lines>
<line type="zoom" name="move_lines">
<ref type="field" name="product_id.code">68854GZGZ</ref>
<tracking></tracking>
<quantity type="field" name="product_qty">0</quantity>
<location type="field" name="location_id.name">0</location>
<prod_uom type="field" name="product_uom.name">0</prod_uom>
<name type="field" name="product_id.name">Un joli t-shirt tout bo</name>
<variant type="field" name="product_id.variants">XL</variant>
<state type="field" name="state">draft</state>
<lot type="zoom" name="tracking_id">
<tracking type="field" name="name" />
<serial type="field" name="serial" />
</lot>
</line>
</lines>
</picking>
</pickinglist>
-184
View File
@@ -1,184 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:import href="../../custom/corporate_defaults.xsl"/>
<xsl:import href="../../base/report/rml_template.xsl"/>
<xsl:template match="/">
<xsl:call-template name="rml"/>
</xsl:template>
<!-- frames (optional template - override corporate defaults) -->
<xsl:template name="first_page_frames">
<!--
<frame id="smalltext" x1="14.5cm" y1="26cm" width="6cm" height="3cm"/>
-->
<frame id="address" x1="11cm" y1="21.5cm" width="6cm" height="4cm"/>
<frame id="main" x1="1cm" y1="3.5cm" width="19.0cm" height="17.5cm"/>
</xsl:template>
<!-- report specific "graphics" -->
<xsl:template name="first_page_graphics_report">
<setFont name="Helvetica" size="14"/>
<drawRightString x="200mm" y="25.5cm" t="1">Packing List</drawRightString>
</xsl:template>
<!-- stylesheet -->
<xsl:template name="stylesheet">
<blockTableStyle id="infos">
<blockAlignment value="CENTRE" />
<blockFont name="Helvetica-Bold" size="8" start="0,0" stop="-1,0"/>
<blockValign value="TOP"/>
<lineStyle kind="LINEABOVE" colorName="#cccccc" />
<lineStyle kind="LINEBELOW" colorName="#cccccc" />
<lineStyle kind="LINEAFTER" colorName="#cccccc" />
<lineStyle kind="LINEBEFORE" colorName="#cccccc" />
<blockBackground colorName="#e0e0e0" start="0,0" stop="-1,0"/>
</blockTableStyle>
<blockTableStyle id="products">
<blockAlignment value="LEFT" start="0,0" stop="0,-1"/>
<blockFont name="Helvetica-Bold" size="8" start="0,0" stop="-1,0"/>
<blockAlignment value="CENTER" start="1,0" stop="-1,0"/>
<blockAlignment value="RIGHT" start="2,1" stop="-1,-1"/>
<blockValign value="TOP"/>
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0" />
<lineStyle kind="LINEBELOW" colorName="#e0e0e0" start="0,1" stop="-1,-2" />
</blockTableStyle>
<paraStyle name="address-title" fontName="Helvetica-Bold" fontSize="8" alignment="left"/>
<paraStyle name="address" fontName="Helvetica" fontSize="8" alignment="left" leftIndent="1cm"/>
<paraStyle name="prod" fontName="Helvetica" fontSize="8" alignment="left"/>
<paraStyle name="prod-right" fontName="Helvetica" fontSize="8" alignment="right"/>
</xsl:template>
<xsl:template name="story">
<xsl:apply-templates select="pickinglist"/>
</xsl:template>
<xsl:template match="pickinglist">
<xsl:apply-templates select="picking"/>
</xsl:template>
<xsl:template match="picking">
<xsl:apply-templates select="header"/>
<xsl:apply-templates select="lines"/>
</xsl:template>
<xsl:template match="header">
<!-- start of smalltext frame -->
<!--
<para t="1">
Here is the picking list of this lot. Generated by Tiny ERP.
</para>
-->
<!-- end of smalltext frame -->
<!--
<nextFrame/>
-->
<!-- start of address frame -->
<para style="address-title" t="1">Shipping Address:</para>
<xsl:apply-templates select="corporation" mode="shipping"/>
<xsl:apply-templates select="address" mode="shipping"/>
<!-- end of address frame -->
<nextFrame/>
<!-- start of products frame -->
<para>
<font face="Helvetica-Bold" size="8">Recipient</font>:<font face="Helvetica" size="8"><xsl:apply-templates select="address" mode="header"/></font> </para>
<para style="prod" t="1">Concerns:<xsl:value-of select="picking-name"/></para>
<spacer length="1cm" width="1mm"/>
<blockTable colWidths="4cm,4cm,6cm,4cm" style="infos">
<tr>
<td t="1">Customer ref.</td>
<td t="1">Shipping ref.</td>
<td t="1">Packing Date</td>
<td t="1">Shipping Date</td>
</tr><tr>
<td><para style="address"><xsl:value-of select="corporation/id"/></para></td>
<td><para style="address"><xsl:value-of select="picking-id"/></para></td>
<td><para style="address"><xsl:value-of select="picking-date"/></para></td>
<td><para style="address"><xsl:value-of select="expedition-date"/></para></td>
</tr>
</blockTable>
</xsl:template>
<xsl:template match="corporation" mode="shipping">
<para style="address">
<xsl:value-of select="title"/>
<xsl:text> </xsl:text>
<xsl:value-of select="name"/>
</para>
</xsl:template>
<xsl:template match="address" mode="shipping">
<para style="address">
<xsl:value-of select="title"/>
<xsl:text> </xsl:text>
<xsl:value-of select="name"/>
</para>
<para style="address">
<xsl:value-of select="street"/>
</para>
<para style="address">
<xsl:value-of select="zip"/>
<xsl:text> </xsl:text>
<xsl:value-of select="city"/>
</para>
<para style="address">
<xsl:value-of select="country_id"/>
</para>
</xsl:template>
<xsl:template match="address" mode="header">
<xsl:value-of select="title"/>
<xsl:text> </xsl:text>
<xsl:value-of select="name"/>
</xsl:template>
<xsl:template match="lines">
<spacer length="0.5cm"/>
<setNextTemplate name="other_pages"/>
<blockTable colWidths="2cm,2.2cm,2.2cm,2.5cm,2cm,4.5cm,2.1cm" style="products" repeatRows="1">
<tr>
<setFont name="Helvetica-Bold"/>
<td t="1">Product</td>
<td t="1">Tracking</td>
<td t="1">Serial</td>
<td t="1">Qty</td>
<td t="1">Location</td>
<td t="1">Description</td>
<td t="1">State</td>
</tr>
<xsl:for-each select="line">
<tr>
<td><para style="prod"><xsl:value-of select="ref"/></para></td>
<td><para style="prod"><xsl:value-of select="lot/tracking"/></para></td>
<td><para style="prod"><xsl:value-of select="lot/serial"/></para></td>
<td>
<para style="prod-right">
<xsl:value-of select="quantity"/>
<xsl:text> </xsl:text>
<xsl:value-of select="prod_uom"/>
</para>
</td>
<td><para style="prod"><xsl:value-of select="location"/></para></td>
<td><para style="prod"><xsl:value-of select="name"/><xsl:text> </xsl:text><xsl:value-of select="variant"/></para></td>
<td><para style="prod-right"><xsl:value-of select="state"/></para></td>
</tr>
</xsl:for-each>
</blockTable>
<setNextTemplate name="first_page"/>
<nextFrame/>
</xsl:template>
</xsl:stylesheet>