informe_analisis_accountvoucher_fecha.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_diarioacc3"
  5. model="diarioacc.voucher"
  6. string="Balance de Ingreso y Egreso"
  7. report_type="qweb-pdf"
  8. name="analisis_accountvoucher.informe_diarioacc_por_fecha"
  9. file="analisis_accountvoucher.informe_diarioacc_por_fecha"
  10. />
  11. <template id="informe_diarioacc_por_fecha">
  12. <t t-call="report.html_container">
  13. <t t-call="report.external_layout">
  14. <div class="page">
  15. <div class="row">
  16. <div class="col-xs-12 col-sm-12">
  17. <div class="panel panel-info">
  18. <div class="panel-heading text-center">
  19. <h4>Balance</h4>
  20. </div>
  21. <table class="table table-condenced table-bordered">
  22. <thead>
  23. <th>Factura</th>
  24. <th>Cliente/Proveedor</th>
  25. <th>Fecha</th>
  26. <th>Ingreso</th>
  27. <th>Egreso</th>
  28. </thead>
  29. <tbody>
  30. <t t-foreach="docs" t-as="o">
  31. <tr>
  32. <td><span t-esc="o.reference"/></td>
  33. <td><span t-field="o.partner_id"/></td>
  34. <td><span t-field="o.date_x"/></td>
  35. <td class="text-right success"><span t-esc="'{0:,.0f}'.format(round(float(o.amount_entrada), 0))"/></td>
  36. <!-- t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> <td class="text-right success"><span t-esc='"%0.0f" % o.amount_entrada'/></td> -->
  37. <td class="text-right danger"><span t-esc="'{0:,.0f}'.format(round(float(o.amount_salida), 0))"/></td>
  38. </tr>
  39. </t>
  40. <tr>
  41. <td><strong>Total : </strong></td>
  42. <td></td>
  43. <td></td>
  44. <td class="text-right success">
  45. <strong>
  46. <t t-set="totalent" t-value="sum([x.amount_entrada for x in docs])"/>
  47. <span t-esc="'{0:,.0f}'.format(round(float(totalent), 0))"/>
  48. </strong>
  49. </td>
  50. <td class="text-right danger">
  51. <strong>
  52. <t t-set="totalsal" t-value="sum([x.amount_salida for x in docs])"/>
  53. <span t-esc="'{0:,.0f}'.format(round(float(totalsal), 0))"/>
  54. </strong>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. <div class="panel-footer text-right">
  60. <strong>Saldo : <t t-set="tsaldo" t-value="sum([x.saldo for x in docs])"/>
  61. <span t-esc="'{0:,.0f}'.format(round(float(tsaldo), 0))"/>
  62. </strong>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </t>
  69. </t>
  70. </template>
  71. <!-- <record id="paperformat_analisis_accountvoucher" model="report.paperformat">
  72. <field name="name">Balance</field>
  73. <field name="orientation">Landscape</field>
  74. </record>
  75. <record id="report_diarioacc3" model="ir.actions.report.xml">
  76. <field name="paperformat_id" ref="paperformat_analisis_accountvoucher"></field>
  77. </record> -->
  78. </data>
  79. </openerp>