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.

126 lines
6.4 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">[[ get_informe_text(data['form']) ]]</para></td>
  20. </tr>
  21. <tr>
  22. <td><para style="TOP_TITLE"></para></td>
  23. <td><para style="TITLE_CENTER">[[data['form'] and (' (Expresado en %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="TITLE">
  37. <blockValign value="TOP"/>
  38. </blockTableStyle>
  39. <blockTableStyle id="BODY">
  40. <blockValign value="TOP"/>
  41. <blockAlignment value="RIGHT"/>
  42. <blockTopPadding length="1.0"/>
  43. <blockBottomPadding length="1.0"/>
  44. <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/>
  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 name="TOP_TITLE" fontName="Helvetica-Bold" fontSize="9" leftIndent="0.0" alignment="LEFT"/>
  70. <paraStyle name="TITLES" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
  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="TITLE" alignment="CENTER" fontName="Helvetica" fontSize="18.0" leading="20" spaceBefore="-3.0" textColor="black"/>
  74. </stylesheet>
  75. <images/>
  76. <story>
  77. <para>[[setLang(user.context_lang)]]</para>
  78. <blockTable colWidths="2.5cm,9.5cm,3.5cm,3.5cm" style="BODY" repeatRows="1">
  79. <tr noRowsplits="1">
  80. <td>
  81. <para style="TITLE_LEFT_ALIGN">
  82. <font>Código</font>
  83. </para>
  84. </td>
  85. <td>
  86. <para style="TITLES">Cuenta</para>
  87. </td>
  88. <td>
  89. <para style="TITLE_LEFT_ALIGN">Débito</para>
  90. </td>
  91. <td>
  92. <para style="TITLE_LEFT_ALIGN">Crédito</para>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td>
  97. <para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]]
  98. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  99. <i>[[a['label']==True and a['code'] or '' ]]</i>
  100. </para>
  101. </td>
  102. <td>
  103. <para style="TITLES">
  104. <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>
  105. <font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font>
  106. </para>
  107. </td>
  108. <td>
  109. <para style="TITLE_LEFT_ALIGN">
  110. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  111. <font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font>
  112. </para>
  113. </td>
  114. <td>
  115. <para style="TITLE_LEFT_ALIGN">
  116. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  117. <font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font>
  118. </para>
  119. </td>
  120. </tr>
  121. </blockTable>
  122. </story>
  123. </document>