modelo.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template id="informe_diarioacc_por_fecha">
  2. <t t-call="report.html_container">
  3. <t t-call="report.internal_layout">
  4. <div class="page">
  5. <h2 class="text-center text-info">Balance</h2>
  6. <br/>
  7. <div class="row">
  8. <div class="col-xs-6 col-sm-5 col-md-5">
  9. <div class="panel panel-success">
  10. <div class="panel-heading">
  11. Ingreso
  12. </div>
  13. <table class="table table-condenced table-bordered">
  14. <thead>
  15. <th>Factura</th>
  16. <th>Cliente</th>
  17. <th>Fecha</th>
  18. <th>Ingreso</th>
  19. </thead>
  20. <tbody>
  21. <t t-foreach="docs" t-as="o">
  22. <t t-if="o.type == 'receipt' ">
  23. <tr>
  24. <td><span t-esc="o.reference"/></td>
  25. <td><span t-field="o.partner_id"/></td>
  26. <td><span t-field="o.date_x"/></td>
  27. <td class="text-right"><span t-field="o.amount_entrada"/></td>
  28. </tr>
  29. </t>
  30. </t>
  31. </tbody>
  32. </table>
  33. </div>
  34. </div>
  35. <div class="col-xs-6 col-sm-5 col-sm-5">
  36. <div class="panel panel-danger">
  37. <div class="panel-heading">
  38. Egreso
  39. </div>
  40. <table class="table table-condenced table-bordered">
  41. <thead>
  42. <th>Factura</th>
  43. <th>Proveedor</th>
  44. <th>Fecha</th>
  45. <th>Egreso</th>
  46. </thead>
  47. <tbody>
  48. <t t-foreach="docs" t-as="o">
  49. <t t-if="o.type == 'payment' ">
  50. <tr>
  51. <td><span t-esc="o.reference"/></td>
  52. <td><span t-field="o.partner_id"/></td>
  53. <td><span t-field="o.date_x"/></td>
  54. <td class="text-right"><span t-field="o.amount_salida"/></td>
  55. </tr>
  56. </t>
  57. </t>
  58. </tbody>
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="row">
  64. <div class="col-xs-12 col-sm-12 col-sm-12">
  65. <div class="panel panel-info">
  66. <div class="panel-heading">
  67. Saldo
  68. </div>
  69. <table class="table table-condenced table-bordered">
  70. <thead>
  71. <th>Total Ingreso: </th>
  72. <th class="text-right">
  73. <t t-set="totalent" t-value="sum([x.amount_entrada for x in docs])"/>
  74. <span t-esc="totalent" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  75. </th>
  76. <th>Total Egreso: </th>
  77. <th class="text-right">
  78. <t t-set="totalsal" t-value="sum([x.amount_salida for x in docs])"/>
  79. <span t-esc="totalsal" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  80. </th>
  81. </thead>
  82. </table>
  83. <div class="panel-footer text-right">
  84. <t t-set="tsaldo" t-value="sum([x.saldo for x in docs])"/>
  85. <span t-esc="tsaldo" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </t>
  92. </t>
  93. </template>