informe_invoice_por_fecha.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_invoicegral3"
  5. model="invoice.reportgral"
  6. string="Listado de Gasto por fecha"
  7. report_type="qweb-pdf"
  8. name="report_gralinvoice.informe_invoice_por_fecha"
  9. file="report_gralinvoice.informe_invoice_por_fecha"
  10. />
  11. <template id="informe_invoice_por_fecha">
  12. <t t-call="report.html_container">
  13. <t t-call="report.external_layout">
  14. <div class="page">
  15. <style type="text/css">
  16. .crm_tcab{
  17. font-size: 3mm;
  18. font-family: Arial, Helvetica, sans-serif;
  19. }
  20. .crm_tbody{
  21. font-size: 2.8mm;
  22. font-family: Arial, Helvetica, sans-serif;
  23. }
  24. .logo1{
  25. width: 100%;
  26. top: 1.5cm;
  27. }
  28. .total1{
  29. font-size: 2.8mm;
  30. font-family: Arial, Helvetica, sans-serif;
  31. }
  32. </style>
  33. <h4 class="text-center">Listado de Gastos por fecha</h4>
  34. <div class="logo1" />
  35. <table class="table table-condensed">
  36. <thead class="crm_tcab">
  37. <tr class="active">
  38. <th>Fecha</th>
  39. <th>Proveedor</th>
  40. <th>N° de Factura</th>
  41. <th>Producto</th>
  42. <th class="text-center">Cantidad</th>
  43. <th class="text-right">Sub Total</th>
  44. </tr>
  45. </thead>
  46. <t t-foreach="docs" t-as="o">
  47. <tbody>
  48. <tr>
  49. <td>
  50. <span t-field="o.date" t-field-options='{"widget": "date"}'/>
  51. </td>
  52. <td class="text-left">
  53. <span t-esc="o.partner_id.name"/>
  54. </td>
  55. <td class="text-left">
  56. <span t-esc="o.supplier_invoice_number"/>
  57. </td>
  58. <td class="text-left">
  59. <span t-esc="o.product_id.name"/>
  60. </td>
  61. <td class="text-center">
  62. <span t-field="o.product_qty" sum="# of Qty"/>
  63. </td>
  64. <td class="text-right">
  65. <span t-field="o.price_total"/>
  66. </td>
  67. </tr>
  68. </tbody>
  69. </t>
  70. <tr>
  71. <td colspan="6"></td>
  72. </tr>
  73. <tr class="border-black">
  74. <td colspan="3">Total:</td>
  75. <td class="text-right">
  76. <t t-set="total" t-value="sum([x.product_qty for x in docs])"/>
  77. <span t-esc="total"/>
  78. </td>
  79. <td class="text-right">
  80. <t t-set="total1" t-value="sum([r.price_total for r in docs])"/>
  81. <span t-esc="total1"/>
  82. </td>
  83. </tr>
  84. </table>
  85. </div>
  86. </t>
  87. </t>
  88. </template>
  89. </data>
  90. </openerp>