informes_accountinvoices.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="account_invoices_id1"
  6. model="account.invoice"
  7. string="Listado de Facturas2"
  8. report_type="qweb-pdf"
  9. name="informes_accountinvoices.report_invoice1"
  10. file="informes_accountinvoices.report_invoice1"
  11. />
  12. <template id="report_invoice1">
  13. <t t-call="report.html_container">
  14. <t t-call="report.external_layout">
  15. <div class="header">-</div>
  16. <div class="page">
  17. <style type="text/css">
  18. .crm_tcab{
  19. font-size: 3mm;
  20. font-family: Arial, Helvetica, sans-serif;
  21. }
  22. .veh_tbody{
  23. font-size: 2.8mm;
  24. font-family: Arial, Helvetica, sans-serif;
  25. }
  26. .taxtotal{
  27. font-size: 2.8mm;
  28. }
  29. .total{
  30. font-size: 2.8mm;
  31. }
  32. .untotal{
  33. font-size: 2.8mm;
  34. }
  35. .logo1{
  36. width: 100%;
  37. top: 1.5cm;
  38. }
  39. </style>
  40. <t t-set="total" t-value="0" />
  41. <t t-foreach="docs" t-as="f">
  42. <t t-set="total" t-value="total+1" />
  43. <t t-if="total==1">
  44. <h4 style="text-align:center;"> <span t-if="f.type == 'in_invoice'">Listado de Facturas/Compras</span></h4>
  45. <h4 style="text-align:center;"> <span t-if="f.type == 'out_invoice'">Listado de Facturas/Ventas</span></h4>
  46. </t>
  47. </t>
  48. <br></br>
  49. <div class="logo1"> </div>
  50. <table class="table table-bordered">
  51. <thead class="crm_tcab">
  52. <tr class="active">
  53. <th class="text-center">N° Factura</th>
  54. <th class="text-center">Fecha</th>
  55. <th class="text-center">R.U.C.</th>
  56. <th class="text-center">Cliente</th>
  57. <th class="text-center">Total</th>
  58. <th class="text-center">Pagado</th>
  59. <th class="text-center">Saldo</th>
  60. <th class="text-center">Vendedor</th>
  61. </tr>
  62. </thead>
  63. <t t-foreach="docs" t-as="o">
  64. <tbody>
  65. <tr>
  66. <td><span t-esc="o.supplier_invoice_number"/></td>
  67. <td><span t-field="o.date_invoice"/></td>
  68. <td><span t-esc="o.partner_id.ruc"/></td>
  69. <td><span t-esc="o.partner_id.name"/></td>
  70. <td class="text-right">
  71. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  72. </td>
  73. <td class="text-right">
  74. <span t-esc="'{0:,.0f}'.format(o.amount_total-o.residual)"/>
  75. </td>
  76. <td class="text-right">
  77. <span t-esc="'{0:,.0f}'.format(o.residual)"/>
  78. </td>
  79. <td><span t-field="o.user_id.name"/></td>
  80. </tr>
  81. </tbody>
  82. </t>
  83. <tr>
  84. <td colspan="10"></td>
  85. </tr>
  86. <tr class="border-black">
  87. <td colspan="4">Total:</td>
  88. <td class="text-right">
  89. <t t-set="total" t-value="sum([x.amount_total for x in docs])"/>
  90. <span t-esc="'{0:,.0f}'.format(total)"/>
  91. </td>
  92. <td class="text-right">
  93. <t t-set="total2" t-value="sum([x.amount_total-x.residual for x in docs])"/>
  94. <span t-esc="'{0:,.0f}'.format(total2)"/>
  95. </td>
  96. <td class="text-right">
  97. <t t-set="total3" t-value="sum([x.residual for x in docs])"/>
  98. <span t-esc="'{0:,.0f}'.format(total3)"/>
  99. </td>
  100. </tr>
  101. </table>
  102. </div>
  103. </t>
  104. </t>
  105. </template>
  106. </data>
  107. </openerp>