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.

130 lines
6.2 KiB

  1. <?xml version="1.0"?>
  2. <document filename="test.pdf">
  3. <template pageSize="(21.59cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0">
  4. <pageTemplate id="first">
  5. <frame id="first" x1="1cm" y1="1.0cm" width="19.0cm" height="23cm"/>
  6. <pageGraphics>
  7. <setFont name="Helvetica" size="9"/>
  8. <image x="1.0cm" y="24.0cm" width="5.0cm">[[company.logo and company.logo or removeParentNode('image')]]</image>
  9. <!--
  10. <drawString x="1.0cm" y="24.5cm">[[company.logo and removeParentNode('para') or company.name]]</drawString>
  11. -->
  12. <place x="-3.5cm" y="22.50cm" width="19cm" height="5.0cm">
  13. <blockTable colWidths="9.6cm,9.4cm" style="TITLE">
  14. <tr>
  15. <td><para style="TOP_TITLE"></para></td>
  16. <td><para style="TITLE_CENTER_NAME">
  17. <font>[[ (company.name and company.name or 'NOMBRE DE COMPANIA NO DISPONIBLE')]]</font>
  18. <font>[[ company.partner_id.vat and ('- %s-%s-%s'%(company.partner_id.vat[2:3],company.partner_id.vat[3:11],company.partner_id.vat[11:12])) or '' ]]</font>
  19. </para></td>
  20. </tr>
  21. <tr>
  22. <td><para style="TOP_TITLE"></para></td>
  23. <td><para style="TITLE_CENTER">(Expressed in [[data['form'] and ('%s'%( exchange_name(data['form']))) or '']])</para></td>
  24. </tr>
  25. <tr>
  26. <td><para style="TOP_TITLE"></para></td>
  27. <td><para style="TITLE_CENTER">[[data['form'] and get_month(data['form']) or '']]</para></td>
  28. </tr>
  29. </blockTable>
  30. </place>
  31. <drawRightString x="192mm" y="5mm">[[ get_informe_text(data['form']) ]] / Pág.: <pageNumber/>-<pageCount/> </drawRightString>
  32. </pageGraphics>
  33. </pageTemplate>
  34. </template>
  35. <stylesheet>
  36. <blockTableStyle id="BODY">
  37. <blockValign value="TOP"/>
  38. <blockAlignment value="RIGHT"/>
  39. <blockTopPadding length="1.0"/>
  40. <blockBottomPadding length="1.0"/>
  41. <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/>
  42. </blockTableStyle>
  43. <blockTableStyle id="TITLE">
  44. <blockValign value="TOP"/>
  45. </blockTableStyle>
  46. <blockTableStyle id="BODY_STRIKE">
  47. <blockValign value="TOP"/>
  48. <blockAlignment value="RIGHT"/>
  49. <blockTopPadding length="1.0"/>
  50. <blockBottomPadding length="1.0"/>
  51. <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/>
  52. </blockTableStyle>
  53. <blockTableStyle id="TOP_TABLE">
  54. <blockAlignment value="LEFT"/>
  55. <blockValign value="TOP"/>
  56. <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/>
  57. </blockTableStyle>
  58. <initialize>
  59. <paraStyle name="all" alignment="justify"/>
  60. </initialize>
  61. <paraStyle
  62. name="TITLE_LEFT_ALIGN"
  63. fontName="Helvetica-Bold"
  64. fontSize="8.0"
  65. leading="10"
  66. alignment="RIGHT"
  67. spaceBefore="0.0"
  68. spaceAfter="0.0"/>
  69. <paraStyle
  70. name="TOP_TITLE"
  71. fontName="Helvetica-Bold"
  72. fontSize="9"
  73. leftIndent="0.0"
  74. alignment="LEFT"/>
  75. <paraStyle name="TITLE_CENTER" fontName="Helvetica-Bold" fontSize="9" leading="10" leftIndent="0.0" alignment="CENTER"/>
  76. <paraStyle name="TITLE_CENTER_NAME" fontName="Helvetica-Bold" fontSize="12" leading="13" leftIndent="0.0" alignment="CENTER"/>
  77. <paraStyle name="TITLES"
  78. fontName="Helvetica-Bold"
  79. fontSize="8.0"
  80. leading="10"
  81. alignment="LEFT"
  82. spaceBefore="0.0"
  83. spaceAfter="0.0"/>
  84. <paraStyle name="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/>
  85. </stylesheet>
  86. <images/>
  87. <story>
  88. <para>[[setLang(user.lang)]]</para>
  89. <blockTable colWidths="2.5cm,13.5cm,3.0cm" style="BODY" repeatRows="1">
  90. <tr noRowsplits="1">
  91. <td>
  92. <para style="TITLE_LEFT_ALIGN">
  93. <font>[[ setTag('para','para',{'alignment':"RIGHT"}) ]]</font>
  94. <font>CODE</font>
  95. </para>
  96. </td>
  97. <td>
  98. <para style="TITLES">ACCOUNT</para>
  99. </td>
  100. <td>
  101. <para style="TITLE_LEFT_ALIGN">BALANCE</para>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. <para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]]
  107. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  108. <i>[[a['label']==True and a['code'] or '' ]]</i>
  109. </para>
  110. </td>
  111. <td>
  112. <para style="TITLES">
  113. <font>[[ ((a['total'] and not a['label']) and setTag('para','para',{'alignment':"RIGHT"}) or (a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}))) or removeParentNode('font') ]]</font>
  114. <font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font>
  115. </para>
  116. </td>
  117. <td>
  118. <para style="TITLE_LEFT_ALIGN">
  119. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  120. <font>[[ (a['total']==True) and formatLang(a['balance'] and a['balance'] * a.get('change_sign') or 0.0, digits=2, grouping=True) or '']]</font>
  121. </para>
  122. </td>
  123. </tr>
  124. </blockTable>
  125. </story>
  126. </document>