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.

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