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.

151 lines
6.9 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="TOP_TITLE"
  57. fontName="Courier-Bold"
  58. fontSize="9.0"
  59. leftIndent="0.0"
  60. alignment="LEFT"/>
  61. <paraStyle name="TITLES"
  62. fontName="Courier-Bold"
  63. fontSize="8.0"
  64. leading="10"
  65. alignment="LEFT"
  66. spaceBefore="0.0"
  67. spaceAfter="0.0"/>
  68. </stylesheet>
  69. <images/>
  70. <story>
  71. <para>[[setLang(user.context_lang)]]</para>
  72. <blockTable colWidths="23cm" style="TOP_TABLE" repeatRows="1">
  73. <tr>
  74. <td>
  75. <para style="TOP_TITLE">Año Fiscal: [[ get_fiscalyear_text(data['form']) or removeParentNode('para') ]]</para>
  76. <para style="TOP_TITLE">Periodos: [[ get_periods_and_date_text(data['form'])['periods'] or removeParentNode('para') ]]</para>
  77. <para style="TOP_TITLE">Fecha Intervalo: [[ get_periods_and_date_text(data['form'])['date'] or removeParentNode('para') ]]</para>
  78. </td>
  79. </tr>
  80. </blockTable>
  81. <blockTable colWidths="3.0cm,7.0cm,4.0cm,4.0cm,4.0cm,4.0cm" style="BODY" repeatRows="1">
  82. <tr noRowsplits="1">
  83. <td>
  84. <para style="TITLE_LEFT_ALIGN">
  85. <font>Cuenta</font>
  86. </para>
  87. </td>
  88. <td>
  89. <para style="TITLES">Descripcion</para>
  90. </td>
  91. <td>
  92. <para style="TITLE_LEFT_ALIGN">Saldo Anterior</para>
  93. </td>
  94. <td>
  95. <para style="TITLE_LEFT_ALIGN">Debe</para>
  96. </td>
  97. <td>
  98. <para style="TITLE_LEFT_ALIGN">Haber</para>
  99. </td>
  100. <td>
  101. <para style="TITLE_LEFT_ALIGN">Saldo Actual</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['balanceinit'], digits=2, grouping=True) or '']]</font>
  121. </para>
  122. </td>
  123. <td>
  124. <para style="TITLE_LEFT_ALIGN">
  125. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  126. <font>[[ (a['total']==True) and formatLang(a['debit'], digits=2, grouping=True) or '']]</font>
  127. </para>
  128. </td>
  129. <td>
  130. <para style="TITLE_LEFT_ALIGN">
  131. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  132. <font>[[ (a['total']==True) and formatLang(a['credit'], digits=2, grouping=True) or '']]</font>
  133. </para>
  134. </td>
  135. <td>
  136. <para style="TITLE_LEFT_ALIGN">
  137. <font>[[ a['type']&lt;&gt;'view' and setTag('para','para',{'fontName':"Courier"}) or removeParentNode('font') ]]</font>
  138. <font>[[ (a['total']==True) and formatLang(a['balance'], digits=2, grouping=True) or '']]</font>
  139. </para>
  140. </td>
  141. </tr>
  142. </blockTable>
  143. </story>
  144. </document>