informe_invoice_contadocredito.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="account_invoices_id2"
  6. model="account.invoice"
  7. string="Listado de Facturas con forma de pago"
  8. report_type="qweb-pdf"
  9. name="informe_invoice_contadocredito.report_invoice_contadocredito"
  10. file="informe_invoice_contadocredito.report_invoice_contadocredito"
  11. />
  12. <template id="report_invoice_contadocredito">
  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">Forma de venta</th>
  56. <th class="text-center">R.U.C.</th>
  57. <th class="text-center">Cliente</th>
  58. <th class="text-center">Total</th>
  59. <th class="text-center">Pagado</th>
  60. <th class="text-center">Saldo</th>
  61. <th class="text-center">Estado</th>
  62. </tr>
  63. </thead>
  64. <t t-foreach="docs" t-as="o">
  65. <tbody>
  66. <tr>
  67. <td><span t-esc="o.supplier_invoice_number"/></td>
  68. <td><span t-field="o.date_invoice"/></td>
  69. <td>
  70. <span t-if="o.contado == True">Contado</span>
  71. <span t-if="o.credito == True">Crédito</span>
  72. </td>
  73. <td><span t-esc="o.partner_id.ruc"/></td>
  74. <td><span t-esc="o.partner_id.name"/></td>
  75. <td class="text-right">
  76. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  77. </td>
  78. <td class="text-right">
  79. <span t-esc="'{0:,.0f}'.format(o.amount_total-o.residual)"/>
  80. </td>
  81. <td class="text-right">
  82. <span t-esc="'{0:,.0f}'.format(o.residual)"/>
  83. </td>
  84. <td><span t-field="o.state"/></td>
  85. </tr>
  86. </tbody>
  87. </t>
  88. <tr>
  89. <td colspan="10"></td>
  90. </tr>
  91. <tr class="border-black">
  92. <td colspan="4">Total:</td>
  93. <td class="text-right">
  94. <t t-set="total" t-value="sum([x.amount_total for x in docs])"/>
  95. <span t-esc="'{0:,.0f}'.format(total)"/>
  96. </td>
  97. <td class="text-right">
  98. <t t-set="total2" t-value="sum([x.amount_total-x.residual for x in docs])"/>
  99. <span t-esc="'{0:,.0f}'.format(total2)"/>
  100. </td>
  101. <td class="text-right">
  102. <t t-set="total3" t-value="sum([x.residual for x in docs])"/>
  103. <span t-esc="'{0:,.0f}'.format(total3)"/>
  104. </td>
  105. </tr>
  106. </table>
  107. </div>
  108. </t>
  109. </t>
  110. </template>
  111. </data>
  112. </openerp>