informe_analisiscompraventa_fecha.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_diariocta3"
  5. model="compraventa.analisis"
  6. string="Listado de utilidad s/ compra/venta por producto"
  7. report_type="qweb-pdf"
  8. name="analisis_compraventa.informe_compraventaanalisis_fecha"
  9. file="analisis_compraventa.informe_compraventaanalisis_fecha"
  10. />
  11. <template id="informe_compraventaanalisis_fecha">
  12. <t t-call="report.html_container">
  13. <t t-call="report.internal_layout">
  14. <div class="page">
  15. <h2 class="text-center text-info">Listado de utilidad s/ compra/venta por producto</h2>
  16. <br/>
  17. <div class="row">
  18. <div class="col-xs-12 col-sm-7 col-md-7">
  19. <div class="panel panel-success">
  20. <table class="table table-condensed">
  21. <thead>
  22. <th class="text-left">Producto</th>
  23. <th class="text-right">P.Costo</th>
  24. <th class="text-right">Cant.</th>
  25. <th class="text-right">T.Costo</th>
  26. <th class="text-right">P.Venta</th>
  27. <th class="text-right">Cant.</th>
  28. <th class="text-right">T.Venta</th>
  29. <th class="text-right">Gan/Per</th>
  30. </thead>
  31. <tbody>
  32. <t t-foreach="docs" t-as="o">
  33. <tr>
  34. <td class="text-left"><span t-esc="o.name_template"/></td>
  35. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.price_cost), 0))"/></td>
  36. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.product_qty), 0))"/></td>
  37. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.tpc), 0))"/></td>
  38. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.price_unit), 0))"/></td>
  39. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.product_uom_qty), 0))"/></td>
  40. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.tpv), 0))"/></td>
  41. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(o.tgan), 0))"/></td>
  42. </tr>
  43. </t>
  44. </tbody>
  45. <td class="panel-footer">
  46. <strong>Totales:</strong>
  47. </td>
  48. <td class="panel-footer">
  49. <strong><t t-set="tqty" t-value="sum([x.product_qty for x in docs])"/>
  50. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(tqty), 0))"/></td>
  51. </strong>
  52. </td>
  53. <strong><t t-set="tsaldo1" t-value="sum([x.tpc for x in docs])"/>
  54. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(tsaldo1), 0))"/></td>
  55. </strong>
  56. <td class="panel-footer">
  57. <strong><t t-set="tqty1" t-value="sum([x.product_uom_qty for x in docs])"/>
  58. <td class="text-right"><span t-esc="'{0:,.0f}'.format(round(float(tqty1), 0))"/></td>
  59. </strong>
  60. </td>
  61. <td class="panel-footer text-right">
  62. <strong><t t-set="tsaldo2" t-value="sum([x.tpv for x in docs])"/>
  63. <span t-esc="'{0:,.0f}'.format(round(float(tsaldo2), 0))"/>
  64. </strong>
  65. </td>
  66. <td class="panel-footer text-right">
  67. <strong><t t-set="tgan" t-value="sum([x.tgan for x in docs])"/>
  68. <span t-esc="'{0:,.0f}'.format(round(float(tgan), 0))"/>
  69. </strong>
  70. </td>
  71. </table>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </t>
  77. </t>
  78. </template>
  79. </data>
  80. </openerp>