|
|
|
@@ -1,3 +1,138 @@
|
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
<document filename="test.pdf"><template pageSize="(612.0,792.0)" title="Test" author="Martin Simon" allowSplitting="20"><pageTemplate id="first"><frame id="first" x1="57.0" y1="57.0" width="498" height="678"/></pageTemplate></template><stylesheet><blockTableStyle id="Standard_Outline"><blockAlignment value="LEFT"/><blockValign value="TOP"/></blockTableStyle><blockTableStyle id="Table1"><blockAlignment value="LEFT"/><blockValign value="TOP"/><lineStyle kind="GRID" colorName="black"/><blockBackground colorName="#e6e6e6" start="0,0" stop="0,0"/><blockBackground colorName="#e6e6e6" start="1,0" stop="1,0"/><blockBackground colorName="#e6e6e6" start="2,0" stop="2,0"/><blockBackground colorName="#e6e6e6" start="3,0" stop="3,0"/><blockBackground colorName="#e6e6e6" start="4,0" stop="4,0"/></blockTableStyle><initialize><paraStyle name="all" alignment="justify"/></initialize><paraStyle name="P1" fontName="Times-Roman" alignment="LEFT"/><paraStyle name="P2" fontName="Times-Roman" fontSize="16.0" leading="20" alignment="CENTER"/><paraStyle name="P3" fontName="Times-Roman" alignment="LEFT"/><paraStyle name="P4" fontName="Times-Roman" fontSize="13.0" leading="16" alignment="LEFT"/><paraStyle name="P5" fontName="Times-Roman" fontSize="6.0" leading="8" alignment="LEFT"/><paraStyle name="P6" fontName="Times-Roman" fontSize="12.0" leading="15" alignment="LEFT"/><paraStyle name="Standard" fontName="Times-Roman"/><paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/><paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/><paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/><paraStyle name="Caption" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/><paraStyle name="Index" fontName="Times-Roman"/><paraStyle name="Table Contents" fontName="Times-Roman"/><paraStyle name="Table Heading" fontName="Times-Roman" alignment="CENTER"/></stylesheet><images/><story><para style="P2">BOM Structure</para><para style="P1"><font color="white"> </font></para><section><para style="P5"><font face="Times-Roman">[[ repeatIn(objects, 'o') ]]</font></para><blockTable colWidths="157.0,151.0,85.0,50.0,56.0" style="Table1"><tr><td><para style="P3">BOM</para></td><td><para style="P3">Product Name</para></td><td><para style="P3">Quantity</para></td><td><para style="P3">UoM</para></td><td><para style="P3">Code</para></td></tr><tr><td><para style="P6"><font face="Times-Roman">[[ o.name ]]</font></para></td><td><para style="P3">[[ o.product_id.name ]]</para></td><td><para style="P3">[[ o.product_qty ]]</para></td><td><para style="P3">[[ o.product_uom.name ]]</para></td><td><para style="P3">[[ o.code ]]</para></td></tr><tr><td><para style="P3">[[ repeatIn(o.bom_lines, 'l') ]]</para><para style="P3">- [[ l.name ]]</para></td><td><para style="P3">[[ l.product_id.name ]]</para></td><td><para style="P3">[[ l.product_qty ]]</para></td><td><para style="P3">[[ l.product_uom.name ]]</para></td><td><para style="P3">[[ l.code ]]</para></td></tr></blockTable><para style="P1"><font color="white"> </font></para></section></story></document>
|
|
|
|
|
|
|
|
|
|
<document filename="test.pdf">
|
|
|
|
|
<template pageSize="(612.0,792.0)" title="Test" author="Martin Simon" allowSplitting="20">
|
|
|
|
|
<pageTemplate id="first">
|
|
|
|
|
<frame id="first" x1="57.0" y1="57.0" width="498" height="678"/>
|
|
|
|
|
</pageTemplate>
|
|
|
|
|
</template>
|
|
|
|
|
<stylesheet>
|
|
|
|
|
<blockTableStyle id="Standard_Outline">
|
|
|
|
|
<blockAlignment value="LEFT"/>
|
|
|
|
|
<blockValign value="TOP"/>
|
|
|
|
|
</blockTableStyle>
|
|
|
|
|
<blockTableStyle id="Table3">
|
|
|
|
|
<blockAlignment value="LEFT"/>
|
|
|
|
|
<blockValign value="TOP"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
|
|
|
|
|
</blockTableStyle>
|
|
|
|
|
<blockTableStyle id="Table4">
|
|
|
|
|
<blockAlignment value="LEFT"/>
|
|
|
|
|
<blockValign value="TOP"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
|
|
|
|
|
</blockTableStyle>
|
|
|
|
|
<blockTableStyle id="Table1">
|
|
|
|
|
<blockAlignment value="LEFT"/>
|
|
|
|
|
<blockValign value="TOP"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="2,-1" stop="2,-1"/>
|
|
|
|
|
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
|
|
|
|
|
</blockTableStyle>
|
|
|
|
|
<initialize>
|
|
|
|
|
<paraStyle name="all" alignment="justify"/>
|
|
|
|
|
</initialize>
|
|
|
|
|
<paraStyle name="P1" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="P2" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="Standard" fontName="Times-Roman"/>
|
|
|
|
|
<paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="Caption" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="Index" fontName="Times-Roman"/>
|
|
|
|
|
<paraStyle name="Table Contents" fontName="Times-Roman" fontSize="6.0" leading="8" alignment="LEFT"/>
|
|
|
|
|
<paraStyle name="Table Heading" fontName="Times-Roman" fontSize="6.0" leading="8" alignment="CENTER"/>
|
|
|
|
|
<paraStyle name="terp_header" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Bold_8" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="Footer" fontName="Times-Roman"/>
|
|
|
|
|
<paraStyle name="Horizontal Line" fontName="Times-Roman" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="14.0"/>
|
|
|
|
|
<paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_1" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_Right_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="terp_default_8_Italic" fontName="Helvetica-Oblique" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
<paraStyle name="Heading 2" fontName="Helvetica-BoldOblique" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
|
|
|
|
|
<paraStyle name="terp_remove_space" fontName="Times-Roman" fontSize="2.0" leading="3" spaceBefore="0.0" spaceAfter="0.0"/>
|
|
|
|
|
</stylesheet>
|
|
|
|
|
<images/>
|
|
|
|
|
<story>
|
|
|
|
|
<para style="terp_header_Centre">BOM Structure</para>
|
|
|
|
|
<section>
|
|
|
|
|
<para style="terp_default_9">[[ repeatIn(objects, 'o') ]]</para>
|
|
|
|
|
<blockTable colWidths="166.0,208.0,79.0,55.0" style="Table3">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_tblheader_General">BOM</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_tblheader_General">Product Name</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_tblheader_General_Right">Quantity</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_tblheader_General_Centre">Code</para>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</blockTable>
|
|
|
|
|
<blockTable colWidths="166.0,208.0,79.0,55.0" style="Table4">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_default_9">[[ o.name ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_default_9">[[ o.product_id.name ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_default_Right_9">[[ o.product_qty ]] [[ o.product_uom.name ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_default_Centre_9">[[ o.code ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</blockTable>
|
|
|
|
|
<section>
|
|
|
|
|
<para style="terp_default_9">[[ repeatIn(o.bom_lines, 'l') ]]</para>
|
|
|
|
|
<blockTable colWidths="166.0,208.0,79.0,55.0" style="Table1">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="P1">- [[ l.name ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="P1">[[ l.product_id.name ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="P2">[[ l.product_qty ]] [[ l.product_uom.name ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<para style="terp_default_Centre_9">[[ l.code ]]</para>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</blockTable>
|
|
|
|
|
<para style="terp_remove_space">
|
|
|
|
|
<font color="white"> </font>
|
|
|
|
|
</para>
|
|
|
|
|
</section>
|
|
|
|
|
</section>
|
|
|
|
|
</story>
|
|
|
|
|
</document>
|
|
|
|
|