informe_account_voucher.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="account_voucher_id"
  6. model="account.voucher"
  7. string="Listados de Pagos/Cobros"
  8. report_type="qweb-pdf"
  9. name="informes_account_voucher.report_voucher1"
  10. file="informes_account_voucher.report_voucher1"
  11. />
  12. <template id="report_voucher1">
  13. <t t-call="report.html_container">
  14. <t t-call="report.external_layout">
  15. <div class="page">
  16. <style type="text/css">
  17. .crm_tcab{
  18. font-size: 3mm;
  19. font-family: Arial, Helvetica, sans-serif;
  20. }
  21. .sale_tbody{
  22. font-size: 2.8mm;
  23. font-family: Arial, Helvetica, sans-serif;
  24. }
  25. .taxtotal{
  26. font-size: 2.8mm;
  27. }
  28. .total{
  29. font-size: 2.8mm;
  30. }
  31. .untotal{
  32. font-size: 2.8mm;
  33. }
  34. .logo1{
  35. width: 100%;
  36. top: 1.5cm;
  37. }
  38. </style>
  39. <t t-set="total" t-value="0" />
  40. <t t-foreach="docs" t-as="f">
  41. <t t-set="total" t-value="total+1" />
  42. <t t-if="total==1">
  43. <h4 style="text-align:center;"> <span t-if="f.type == 'payment'">Listado de Pagos</span></h4>
  44. <h4 style="text-align:center;"> <span t-if="f.type == 'receipt'">Listado de Cobros</span></h4>
  45. </t>
  46. </t>
  47. <br></br>
  48. <div class="logo1"> </div>
  49. <table class="table table-bordered">
  50. <thead class="crm_tcab">
  51. <tr class="active">
  52. <th class="text-center">Numero</th>
  53. <th class="text-center">Nombre</th>
  54. <th class="text-center">Fecha</th>
  55. <th class="text-center">Metodo de Pago/Cobro</th>
  56. <th class="text-center">Monto Pagado/Cobrado</th>
  57. <th class="text-center">Estado</th>
  58. </tr>
  59. </thead>
  60. <t t-foreach="docs" t-as="o">
  61. <tbody class="sale_tbody">
  62. <td class="text-left">
  63. <span t-field="o.number"/>
  64. </td>
  65. <td class="text-left">
  66. <span t-field="o.partner_id.name"/>
  67. </td>
  68. <td class="text-left">
  69. <span t-field="o.date"/>
  70. </td>
  71. <td class="text-left">
  72. <span t-field="o.journal_id"/>
  73. </td>
  74. <td class="text-right">
  75. <span t-field="o.amount"
  76. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  77. </td>
  78. <td class="text-left">
  79. <span t-field="o.state"/>
  80. </td>
  81. </tbody>
  82. </t>
  83. <tr>
  84. <td colspan="6"></td>
  85. </tr>
  86. <tr class="border-black">
  87. <td colspan="3">Total:</td>
  88. <td class="text-right">
  89. <t t-set="total" t-value="sum([x.amount for x in docs])"/>
  90. <span t-esc="total" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  91. </td>
  92. </tr>
  93. </table>
  94. </div>
  95. </t>
  96. </t>
  97. </template>
  98. </data>
  99. </openerp>