informe_personal_por_fecha.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="report_diariopersonal3"
  5. model="personal.analisis"
  6. string="Listado de Pago de Personal"
  7. report_type="qweb-pdf"
  8. name="analisis_personal.informe_personal_por_fecha"
  9. file="analisis_personal.informe_personal_por_fecha"
  10. />
  11. <template id="informe_personal_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 Pago de Personal</h4>
  34. <div class="logo1" />
  35. <table class="table table-condenced table-bordered">
  36. <thead class="crm_tcab">
  37. <tr class="active">
  38. <th class="text-center">Personal</th>
  39. <th class="text-center">Referencia</th>
  40. <th class="text-center">Descripcion</th>
  41. <th class="text-center">Salida</th>
  42. <th class="text-center">Fecha</th>
  43. </tr>
  44. </thead>
  45. <t t-foreach="docs" t-as="o">
  46. <tbody>
  47. <tr>
  48. <td class="text-left">
  49. <span t-esc="o.employee_id.name"/>
  50. </td>
  51. <td class="text-left">
  52. <span t-esc="o.rnumber"/>
  53. </td>
  54. <td class="text-left">
  55. <span t-esc="o.name"/>
  56. </td>
  57. <td class="text-right success">
  58. <span t-esc="'{0:,.0f}'.format(round(float(o.amount_salida), 0))"/>
  59. </td>
  60. <td class="text-right">
  61. <span t-field="o.date_x" t-field-options='{"widget": "date"}'/>
  62. </td>
  63. </tr>
  64. </tbody>
  65. </t>
  66. <tr>
  67. <td colspan="5"></td>
  68. </tr>
  69. <tr class="border-black">
  70. <td colspan="4">Total:</td>
  71. <td class="text-right danger">
  72. <strong>
  73. <t t-set="totalsal" t-value="sum([x.amount_salida for x in docs])"/>
  74. <span t-esc="'{0:,.0f}'.format(round(float(totalsal), 0))"/>
  75. </strong>
  76. </td>
  77. </tr>
  78. </table>
  79. </div>
  80. </t>
  81. </t>
  82. </template>
  83. </data>
  84. </openerp>