You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

263 lines
11 KiB

  1. <?xml version="1.0"?>
  2. <document filename="test.pdf">
  3. <template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
  4. <pageTemplate id="first">
  5. <frame id="first" x1="35.0" y1="35.0" width="525" height="772"/>
  6. <pageGraphics>
  7. <setFont name="Helvetica-Bold" size="9"/>
  8. <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
  9. <drawString x="17.7cm" y="28.1cm">Maintenance And Support Summary</drawString>
  10. <setFont name="Helvetica" size="9"/>
  11. <drawString x="1.0cm" y="2cm"> [[ formatLang(time.strftime(date_format), date=True) ]]</drawString>
  12. <drawString x="17.7cm" y="2cm">Page <pageNumber/></drawString>
  13. <lineMode width="0.7"/>
  14. <lines>0.6cm 27.9cm 20.3cm 27.9cm</lines>
  15. <setFont name="Helvetica" size="8"/>
  16. </pageGraphics>
  17. </pageTemplate>
  18. </template>
  19. <stylesheet>
  20. <blockTableStyle id="Standard_Outline">
  21. <blockAlignment value="LEFT"/>
  22. <blockValign value="TOP"/>
  23. </blockTableStyle>
  24. <blockTableStyle id="Table1">
  25. <lineStyle kind="LINEBELOW" colorName="#ffffff" start="0,0" stop="-1,-1"/>
  26. <blockAlignment value="LEFT"/>
  27. <blockValign value="TOP"/>
  28. <blockBackground colorName="#e6e6e6" start="0,0" stop="0,-1"/>
  29. <blockBackground colorName="#e6e6e6" start="1,0" stop="1,-1"/>
  30. <blockBackground colorName="#e6e6e6" start="2,0" stop="2,-1"/>
  31. <blockBackground colorName="#e6e6e6" start="0,1" stop="0,-1"/>
  32. <blockBackground colorName="#e6e6e6" start="1,1" stop="1,-1"/>
  33. <blockBackground colorName="#e6e6e6" start="2,1" stop="2,-1"/>
  34. </blockTableStyle>
  35. <blockTableStyle id="Table6">
  36. <blockAlignment value="LEFT"/>
  37. <blockValign value="TOP"/>
  38. <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
  39. <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
  40. <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
  41. <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
  42. <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
  43. <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
  44. <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,0" stop="2,-1"/>
  45. <lineStyle kind="LINEABOVE" colorName="#000000" start="2,0" stop="2,0"/>
  46. <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
  47. <lineStyle kind="LINEBEFORE" colorName="#000000" start="3,0" stop="3,-1"/>
  48. <lineStyle kind="LINEAFTER" colorName="#000000" start="3,0" stop="3,-1"/>
  49. <lineStyle kind="LINEABOVE" colorName="#000000" start="3,0" stop="3,0"/>
  50. <lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
  51. </blockTableStyle>
  52. <blockTableStyle id="Table2">
  53. <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
  54. <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1"/>
  55. <blockValign value="TOP"/>
  56. <blockAlignment value="RIGHT" start="2,1" stop="-1,-1"/>
  57. </blockTableStyle>
  58. <blockTableStyle id="Table3">
  59. <blockAlignment value="LEFT"/>
  60. <blockValign value="TOP"/>
  61. </blockTableStyle>
  62. <blockTableStyle id="Table4">
  63. <blockAlignment value="LEFT"/>
  64. <blockValign value="TOP"/>
  65. <lineStyle kind="LINEBEFORE" colorName="#000000" start="0,0" stop="0,-1"/>
  66. <lineStyle kind="LINEABOVE" colorName="#000000" start="0,0" stop="0,0"/>
  67. <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
  68. <lineStyle kind="LINEBEFORE" colorName="#000000" start="1,0" stop="1,-1"/>
  69. <lineStyle kind="LINEABOVE" colorName="#000000" start="1,0" stop="1,0"/>
  70. <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
  71. <lineStyle kind="LINEBEFORE" colorName="#000000" start="2,0" stop="2,-1"/>
  72. <lineStyle kind="LINEABOVE" colorName="#000000" start="2,0" stop="2,0"/>
  73. <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
  74. <lineStyle kind="LINEBEFORE" colorName="#000000" start="3,0" stop="3,-1"/>
  75. <lineStyle kind="LINEAFTER" colorName="#000000" start="3,0" stop="3,-1"/>
  76. <lineStyle kind="LINEABOVE" colorName="#000000" start="3,0" stop="3,0"/>
  77. <lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
  78. </blockTableStyle>
  79. <blockTableStyle id="Table7">
  80. <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
  81. </blockTableStyle>
  82. <initialize>
  83. <paraStyle name="all" alignment="justify"/>
  84. </initialize>
  85. <paraStyle name="P1" fontName="Helvetica-Bold" fontSize="14.0" leading="25" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
  86. <paraStyle name="P2" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
  87. <paraStyle name="P2c" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
  88. <paraStyle name="P3" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
  89. <paraStyle name="P10" fontName="Helvetica" fontSize="8.0" leading="14" spaceBefore="0.0" spaceAfter="6.0" alignment="RIGHT"/>
  90. <paraStyle name="P9" fontName="Helvetica-Bold" alignment="CENTER" fontSize="14.5" leftIndent="-5.0"/>
  91. <paraStyle name="P9b" fontName="Helvetica" fontSize="8" alignment="LEFT"/>
  92. <paraStyle name="P9c" fontName="Helvetica" fontSize="8" alignment="RIGHT"/>
  93. <paraStyle name="P12" fontName="Helvetica" fontSize="8.0" leading="14" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
  94. <paraStyle name="P12a" fontName="Helvetica-Bold" fontSize="8.0" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
  95. <paraStyle name="P14" rightIndent="17.0" leftIndent="-0.0" fontName="Helvetica" fontSize="8.0" leading="10" spaceBefore="0.0" spaceAfter="6.0"/>
  96. <blockTableStyle id="TrLevel6">
  97. <blockLeftPadding length="60" start="1,0" stop="1,0"/>
  98. </blockTableStyle>
  99. <blockTableStyle id="TrLevel5">
  100. <blockLeftPadding length="40" start="1,0" stop="1,0"/>
  101. </blockTableStyle>
  102. <blockTableStyle id="TrLevel4">
  103. <blockLeftPadding length="20" start="1,0" stop="1,0"/>
  104. </blockTableStyle>
  105. <blockTableStyle id="TrLevel3">
  106. <blockLeftPadding length="0" start="1,0" stop="1,0"/>
  107. </blockTableStyle>
  108. <blockTableStyle id="TrLevel2">
  109. <blockLeftPadding length="0" start="1,0" stop="1,0"/>
  110. <lineStyle kind="LINEBELOW" colorName="#777777" start="1,0" stop="1,0"/>
  111. <blockTopPadding length="13" start="0,0" stop="-1,0"/>
  112. <blockBottomPadding length="2" start="0,0" stop="-1,0"/>
  113. <blockFont name="Times-Bold" start="0,0" stop="-1,-1"/>
  114. </blockTableStyle>
  115. <blockTableStyle id="TrLevel1">
  116. <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
  117. <blockLeftPadding length="0" start="1,0" stop="1,0"/>
  118. <blockTopPadding length="26" start="0,0" stop="-1,0"/>
  119. <blockBottomPadding length="2" start="0,0" stop="-1,0"/>
  120. <blockFont name="Times-Bold" start="0,0" stop="-1,-1"/>
  121. </blockTableStyle>
  122. <paraStyle
  123. name="Level5"
  124. fontName="Helvetica"
  125. fontSize="8.0" />
  126. <paraStyle
  127. name="Level4"
  128. fontName="Helvetica"
  129. fontSize="8.0" />
  130. <paraStyle
  131. name="Level3"
  132. fontName="Helvetica"
  133. fontSize="8.0" />
  134. <paraStyle
  135. name="Level2"
  136. firstLineIndent="-0.03cm"
  137. fontName="Helvetica-Bold"
  138. fontSize="8.0" />
  139. <paraStyle name="Level1"
  140. fontSize="8.0"
  141. fontName="Helvetica-Bold"
  142. />
  143. <paraStyle name="Caption" fontName="Helvetica" fontSize="10.0" leading="13" spaceBefore="6.0" spaceAfter="6.0"/>
  144. <paraStyle name="Index" fontName="Helvetica"/>
  145. </stylesheet>
  146. <images/>
  147. <story>
  148. <para style="P2">[[ repeatIn(objects,'o') ]]</para>
  149. <para style="P2">[[ setLang(o.partner_id.lang) ]]</para>
  150. <para style="P1">Maintenance And Support Summary</para>
  151. <para style="P12a"></para>
  152. <para style="P12a"></para>
  153. <blockTable colWidths="258.0,259.0" style="Table1" repeatRows="1">
  154. <tr>
  155. <td>
  156. <para style="P12a">Description: </para>
  157. </td>
  158. <td>
  159. <para style="P2">[[ o.name ]]</para>
  160. </td>
  161. </tr>
  162. <tr>
  163. <td>
  164. <para style="P12a">Report Date: </para>
  165. </td>
  166. <td>
  167. <para style="P2">[[ formatLang(time.strftime(date_format), date=True) ]]</para>
  168. </td>
  169. </tr>
  170. <tr>
  171. <td>
  172. <para style="P12a">Invoice Date: </para>
  173. </td>
  174. <td>
  175. <para style="P2">[[ o.date_invoice and formatLang(o.date_invoice, date=True) or '' ]]</para>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td>
  180. <para style="P12a">Amount bought: [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]</para>
  181. <para style="P12a">Quantity of hours bought: [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]</para>
  182. </td>
  183. <td>
  184. <para style="P2">[[ o.amount_hours_block ]]</para>
  185. </td>
  186. </tr>
  187. <tr>
  188. <td>
  189. <para style="P12a">Amount used: [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]</para>
  190. <para style="P12a">Quantity of hours used: [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]</para>
  191. </td>
  192. <td>
  193. <para style="P2">[[ round(o.amount_hours_block_done, 2) ]]</para>
  194. </td>
  195. </tr>
  196. <tr>
  197. <td>
  198. <para style="P12a">Remaining amount: [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]</para>
  199. <para style="P12a">Remaining hours: [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]</para>
  200. </td>
  201. <td>
  202. <para style="P2">[[ o.amount_hours_block and round(o.amount_hours_block_delta, 2) or '' ]]</para>
  203. </td>
  204. </tr>
  205. </blockTable>
  206. <para style="P12a"></para>
  207. <para style="P12a"></para>
  208. <para style="P12a"></para>
  209. <blockTable colWidths="58,305.0,52.0,52.0,52.0" style="Table2" repeatRows="1">
  210. <tr>
  211. <td>
  212. <para style="P12a">Date</para>
  213. </td>
  214. <td>
  215. <para style="P12a">Description</para>
  216. </td>
  217. <td>
  218. <para style="P12a">Quantity</para>
  219. </td>
  220. <td>
  221. <para style="P12a">Invoicing</para>
  222. </td>
  223. <td>
  224. <para style="P12a">Deduced</para>
  225. </td>
  226. </tr>
  227. <tr>
  228. [[ repeatIn(analytic_lines(o), 'l') ]]
  229. <td>
  230. <para style="P2">[[ l.date if formatLang(l.date, date=True) else '' ]]</para>
  231. </td>
  232. <td>
  233. <para style="P2">[[ l.name or '' ]]</para>
  234. </td>
  235. <td>
  236. <para style="P2c">[[ round(l.unit_amount, 2) or '0.0' ]]</para>
  237. </td>
  238. <td>
  239. <para style="P2c">[[ l.to_invoice.customer_name ]]</para>
  240. </td>
  241. <td>
  242. <para style="P2c">[[ round((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ), 2) or '0.0' ]]</para>
  243. </td>
  244. </tr>
  245. </blockTable>
  246. </story>
  247. </document>