informe_cabventa_por_fecha.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_cabventa3"
  5. model="cabventa.report"
  6. string="Listado de Ventas"
  7. report_type="qweb-pdf"
  8. name="report_analisiscabventa.informe_cabventa_por_fecha"
  9. file="report_analisiscabventa.informe_cabventa_por_fecha"
  10. />
  11. <template id="informe_cabventa_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 class="text-center">Listado de Ventas</h4>
  20. </div>
  21. <table class="table table-condenced table-bordered">
  22. <thead>
  23. <tr class="active">
  24. <th class="text-center">Fecha</th>
  25. <th class="text-center">Nro Venta</th>
  26. <th class="text-center">Cliente</th>
  27. <th class="text-center">Total Gs</th>
  28. <th class="text-center">Total $</th>
  29. <th class="text-center">Moneda</th>
  30. <th class="text-center">Sucursal</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <t t-foreach="docs" t-as="o">
  35. <tr>
  36. <td class="text-left">
  37. <span t-field="o.date" t-field-options='{"widget": "date"}'/>
  38. </td>
  39. <td class="text-left">
  40. <span t-esc="o.origin"/>
  41. </td>
  42. <td class="text-left">
  43. <span t-esc="o.partner_id.name"/>
  44. </td>
  45. <td class="text-right success">
  46. <span t-esc="'{0:,.0f}'.format(round(float(o.amount_total), 0))"/>
  47. </td>
  48. <td class="text-right success">
  49. <span t-esc="'{0:,.2f}'.format(round(float(o.amount_totald), 0))"/>
  50. </td>
  51. <td class="text-center">
  52. <span t-field="o.currency_id"/>
  53. </td>
  54. <td class="text-left">
  55. <span t-field="o.section_id"/>
  56. </td>
  57. </tr>
  58. </t>
  59. </tbody>
  60. </table>
  61. <div class="panel-footer text-right">
  62. <strong>Total Gs. : <t t-set="tsaldo" t-value="sum([x.amount_total for x in docs])"/>
  63. <span t-esc="'{0:,.0f}'.format(round(float(tsaldo), 0))"/>
  64. </strong>
  65. </div>
  66. <div class="panel-footer text-right">
  67. <strong>Total $.: <t t-set="tsaldod" t-value="sum([x.amount_totald for x in docs])"/>
  68. <span t-esc="'{0:,.2f}'.format(round(float(tsaldod), 0))"/>
  69. </strong>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </t>
  76. </t>
  77. </template>
  78. </data>
  79. </openerp>