informe_pos_por_fecha2.xml 2.4 KB

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