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.

132 lines
5.6 KiB

  1. <?xml version="1.0"?>
  2. <document filename="test.pdf">
  3. <template pageSize="(27.94cm,27.94cm)" title="Test" author="Martin Simon" allowSplitting="20" showBoundary="0">
  4. <pageTemplate id="first">
  5. <frame id="first" x1="1.5cm" y1="1.5cm" width="24.0cm" height="25cm"/>
  6. <pageGraphics>
  7. <setFont name="Helvetica-Bold" size="9"/>
  8. <!--COL 1-->
  9. <drawString x="1.5cm" y="27.0cm">[[ company.name ]] RIF: [[ company.partner_id.vat[2] ]]-[[ company.partner_id.vat[3:-1] ]]-[[ company.partner_id.vat[-1] ]]</drawString>
  10. <drawString x="20.7cm" y="27.0cm">[[ get_inf_text(data['form']) ]] - [[ company.currency_id.name ]]</drawString>
  11. <!--COL 2-->
  12. <setFont name="Helvetica" size="8"/>
  13. <drawString x="1.0cm" y="1.0cm"> [[ formatLang(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),date_time = True) ]]</drawString>
  14. <drawString x="25.5cm" y="1.0cm">Page <pageNumber/></drawString>
  15. <lineMode width="0.7"/>
  16. <lines>1.3cm 26.9cm 26.5cm 26.9cm</lines>
  17. <setFont name="Helvetica" size="8"/>
  18. </pageGraphics>
  19. </pageTemplate>
  20. </template>
  21. <stylesheet>
  22. <blockTableStyle id="BODY">
  23. <blockValign value="TOP"/>
  24. <blockAlignment value="RIGHT"/>
  25. <blockTopPadding length="1.0"/>
  26. <blockBottomPadding length="1.0"/>
  27. <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1" thickness='0.25'/>
  28. </blockTableStyle>
  29. <blockTableStyle id="BODY_STRIKE">
  30. <blockValign value="TOP"/>
  31. <blockAlignment value="RIGHT"/>
  32. <blockTopPadding length="1.0"/>
  33. <blockBottomPadding length="1.0"/>
  34. <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,1" stop="-1,-1" thickness='0.5'/>
  35. </blockTableStyle>
  36. <blockTableStyle id="TOP_TABLE">
  37. <!--
  38. <blockAlignment value="LEFT"/>
  39. -->
  40. <blockAlignment value="RIGHT"/>
  41. <blockValign value="TOP"/>
  42. <lineStyle kind="LINEBELOW" colorName="#FFFFFF" start="0,-1" stop="0,-1" thickness='0.25'/>
  43. </blockTableStyle>
  44. <initialize>
  45. <paraStyle name="all" alignment="justify"/>
  46. </initialize>
  47. <paraStyle
  48. name="TITLE_LEFT_ALIGN"
  49. fontName="Courier-Bold"
  50. fontSize="8.0"
  51. leading="10"
  52. alignment="RIGHT"
  53. spaceBefore="0.0"
  54. spaceAfter="0.0"/>
  55. <paraStyle
  56. name="TITLE_CENTER_ALIGN"
  57. fontName="Courier-Bold"
  58. fontSize="8.0"
  59. leading="10"
  60. alignment="CENTER"
  61. spaceBefore="0.0"
  62. spaceAfter="0.0"/>
  63. <paraStyle
  64. name="TOP_TITLE"
  65. fontName="Courier-Bold"
  66. fontSize="9.0"
  67. leftIndent="0.0"
  68. alignment="LEFT"/>
  69. <paraStyle name="TITLES"
  70. fontName="Courier-Bold"
  71. fontSize="8.0"
  72. leading="10"
  73. alignment="LEFT"
  74. spaceBefore="0.0"
  75. spaceAfter="0.0"/>
  76. </stylesheet>
  77. <images/>
  78. <story>
  79. <para>[[setLang(user.context_lang)]]</para>
  80. <blockTable colWidths="23cm" style="TOP_TABLE" repeatRows="1">
  81. <tr>
  82. <td>
  83. <para style="TOP_TITLE">Año Fiscal: [[ get_fiscalyear_text(data['form']) or removeParentNode('para') ]]</para>
  84. <para style="TOP_TITLE">Periodos: [[ get_periods_and_date_text(data['form'])['periods'] or removeParentNode('para') ]]</para>
  85. <para style="TOP_TITLE">Fecha Intervalo: [[ get_periods_and_date_text(data['form'])['date'] or removeParentNode('para') ]]</para>
  86. </td>
  87. </tr>
  88. </blockTable>
  89. <blockTable colWidths="4.0cm,10.0cm,6.0cm" style="BODY" repeatRows="1">
  90. <tr noRowsplits="1">
  91. <td>
  92. <para style="TITLE_LEFT_ALIGN">
  93. <font>Cuenta</font>
  94. </para>
  95. </td>
  96. <td>
  97. <para style="TITLES">Descripcion</para>
  98. </td>
  99. <td>
  100. <para style="TITLE_LEFT_ALIGN">Saldo Actual</para>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td>
  105. <para style="TITLE_LEFT_ALIGN">[[ repeatIn(lines(data['form']), 'a') ]]
  106. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  107. <i>[[a['label']==True and a['code'] or '' ]]</i>
  108. </para>
  109. </td>
  110. <td>
  111. <para style="TITLES">
  112. <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>
  113. <font>[[ a['type']=='view' and a['name'].upper() or a['name'].title() ]]</font>
  114. </para>
  115. </td>
  116. <td>
  117. <para style="TITLE_LEFT_ALIGN">
  118. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  119. <font>[[ (a['total']==True) and formatLang(a['balance'], digits=2, grouping=True) or '']]</font>
  120. </para>
  121. </td>
  122. </tr>
  123. </blockTable>
  124. </story>
  125. </document>