orden_cobro_report.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="report_orden_cobro"
  6. model="orden.cobro"
  7. string="Orden de cobro"
  8. report_type="qweb-pdf"
  9. name="orden_cobro.orden_cobro"
  10. file="orden_cobro.orden_cobro"
  11. />
  12. <template id="orden_cobro">
  13. <t t-call="report.html_container">
  14. <t t-foreach="docs" t-as="o">
  15. <t t-call="report.external_layout">
  16. <t t-set="meses" t-value="{
  17. '01': 'enero', '02': 'febrero', '03': 'marzo', '04': 'abril',
  18. '05': 'mayo', '06': 'junio', '07': 'julio', '08': 'agosto',
  19. '09': 'septiembre', '10': 'octubre', '11': 'noviembre', '12': 'diciembre'
  20. }"/>
  21. <t t-set="fecha_parts" t-value="o.date.split('-')"/>
  22. <t t-set="fecha_letras" t-value="'%s de %s de %s' % (fecha_parts[2], meses[fecha_parts[1]], fecha_parts[0])"/>
  23. <div class="page" style="font-size:13px;">
  24. <div style="border: 2px solid #ddd; padding: 10px;">
  25. <!-- Cabecera -->
  26. <div class="row" style="display: flex; align-items: stretch; margin-top: -25px; border-top: 1px solid #ddd;">
  27. <div class="col-xs-3" style="border-radius: 10px 0 0 10px; border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
  28. <div class="logo-container">
  29. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 125px;" />
  30. </div>
  31. <div style="margin-top: 0.3cm;"></div>
  32. <t><center><strong>INNOVACIÓN, TECNOLOGÍA Y SEGURIDAD</strong></center></t>
  33. </div>
  34. <div class="col-xs-5" style="border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
  35. <h3><center><strong><i>BIOELECTRIC</i></strong></center></h3>
  36. <t><center><b>de Armando Javier Aguilar Ramos</b></center></t>
  37. <t><center><b>Instalaciones eléctricas, electromecánicas y electrónicas.</b></center></t>
  38. <t><center><b>Comercio al por menor de otros artículos N.C.P.</b></center></t>
  39. <t><center><b>Comercio al por menor de otros artículos de Ferretería</b></center></t>
  40. <t><center><b>Calle Juan R. Medina c/ Av San Antonio</b></center></t>
  41. <t><center><b>San Antonio - Paraguay</b></center></t>
  42. <t><center><b>bioelectricpy@gmail.com - (0981) 939 132</b></center></t>
  43. </div>
  44. <div class="col-xs-4" style="border-radius: 0 10px 10px 0; border: 2px solid #ddd; display: flex; flex-direction: column; justify-content: center; padding: 10px;">
  45. <t>
  46. <div>
  47. <h5><center><strong>Formulario Nº 022</strong></center></h5>
  48. </div>
  49. </t>
  50. <t>
  51. <div>
  52. <h3><center><strong>RECIBO DE DINERO</strong></center></h3>
  53. </div>
  54. </t>
  55. <t>
  56. <div>
  57. <h4><center><strong><span t-field="o.name" /></strong></center></h4>
  58. </div>
  59. </t>
  60. <t>
  61. <div>
  62. <center><strong><span t-field="o.company_id.vat" /></strong></center>
  63. </div>
  64. </t>
  65. </div>
  66. </div>
  67. <hr style="border: 1px solid #ddd; margin-top: 10px; margin-bottom: 15px;"/>
  68. <div style="margin-bottom: 15px; font-size: 13px;">
  69. <strong>Fecha:</strong> <span t-esc="fecha_letras"/>
  70. </div>
  71. <table style="width:100%; margin-bottom:15px;">
  72. <tr style="height: 25px;">
  73. <td><strong>Recibimos de </strong> <span t-field="o.partner_id.name"/></td>
  74. <td><strong>R.U.C:</strong> <span t-esc="o.ruc_partner"/></td>
  75. </tr>
  76. <tr style="height: 25px;">
  77. <td><strong>Teléfono:</strong> <span t-esc="o.telefono_partner or ''"/></td>
  78. <td><strong>Celular:</strong> <span t-esc="o.celular_partner or ''"/></td>
  79. </tr>
  80. </table>
  81. <table style="width:100%; margin-bottom:15px;border: 1px solid #ddd; margin-top: 10px;">
  82. <tr style="height: 25px;">
  83. <td><strong>La cantidad de </strong> <span t-esc="convertir(o.total, o.currency_id.en_letras1)"/></td>
  84. </tr>
  85. </table>
  86. <table style="width:100%; margin-bottom:15px;border: 1px solid #ddd; margin-top: 10px;">
  87. <tr style="height: 25px;">
  88. <td><strong>Por concepto de </strong> <span t-esc="o.concepto or ''"/></td>
  89. </tr>
  90. </table>
  91. <!-- Detalle de Facturas -->
  92. <div class="row" style="display: flex;">
  93. <div class="col-xs-3" style="border: 1px solid #ddd; padding: 10px;">
  94. <h4>Facturas</h4>
  95. <table style="width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid #ddd;">
  96. <thead>
  97. <tr>
  98. <th style="border: 1px solid #ddd; padding: 8px;">Nº de Factura</th>
  99. <th style="border: 1px solid #ddd; padding: 8px;">Monto</th>
  100. </tr>
  101. </thead>
  102. <tbody>
  103. <tr t-foreach="o.invoice_ids" t-as="line">
  104. <td style="border: 1px solid #ddd; padding: 8px;"><span t-esc="line.name"/></td>
  105. <td style="border: 1px solid #ddd; padding: 8px; text-align: right;"><span t-esc="'{0:,.0f}'.format(line.amount_total)"/></td>
  106. </tr>
  107. </tbody>
  108. </table>
  109. <table style="width:100%; border: 1px solid #ddd; margin-bottom:15px;">
  110. <tr style="height: 30px;">
  111. <td style="width:40%; border-right:1px solid #ddd;">
  112. <strong>Importe Gs.:</strong>
  113. </td>
  114. <td style="width:60%; padding-left:10px;">
  115. <span t-esc="'{0:,.0f}'.format(o.total)"/>
  116. </td>
  117. </tr>
  118. </table>
  119. </div>
  120. <div class="col-xs-9" style="border: 1px solid #ddd; padding: 10px;">
  121. <strong>Forma de cobro:</strong>
  122. <div style="margin-top: 5px;">
  123. <span style="margin-right: 40px; display: inline-block;">
  124. <t t-if="o.is_efec">[x] Efectivo</t>
  125. <t t-if="not o.is_efec">[ ] Efectivo</t>
  126. </span>
  127. <span style="margin-right: 40px; display: inline-block;">
  128. <t t-if="o.is_cheq">[x] Cheque</t>
  129. <t t-if="not o.is_cheq">[ ] Cheque</t>
  130. </span>
  131. <span style="display: inline-block;">
  132. <t t-if="o.is_transf">[x] Transferencia</t>
  133. <t t-if="not o.is_transf">[ ] Transferencia</t>
  134. </span>
  135. </div>
  136. <table style="width:100%; margin-top: 10px; border-collapse: collapse; border: 1px solid #ddd;">
  137. <tr style="height: 25px;">
  138. <td style="border: 1px solid #ddd;"><strong>Banco Cheque:</strong> <span t-esc="o.cheque_banco or ''"/></td>
  139. <td style="border: 1px solid #ddd;"><strong>Cheque Nº:</strong> <span t-esc="o.cheque_nro or ''"/></td>
  140. </tr>
  141. <tr style="height: 25px;">
  142. <td style="border: 1px solid #ddd;"><strong>Banco Transferencia:</strong> <span t-esc="o.transf_banco or ''"/></td>
  143. <td style="border: 1px solid #ddd;"><strong>Transferencia Nº:</strong> <span t-esc="o.transf_nro or ''"/></td>
  144. </tr>
  145. <tr style="height: 25px;">
  146. <td style="border: 1px solid #ddd;"><strong>Presupuesto Nº:</strong> <span t-esc="o.presupuesto_nro or ''"/></td>
  147. <td style="border: 1px solid #ddd;"><strong>Obra:</strong> <span t-esc="o.obra or ''"/></td>
  148. </tr>
  149. </table>
  150. </div>
  151. </div>
  152. <table style="width:100%; margin-top: 20px; font-size: 12px;">
  153. <tr style="height: 25px;">
  154. <td><strong>Solicitado por:</strong> <span t-esc="o.solicitado_por or ''"/></td>
  155. </tr>
  156. <tr style="height: 25px;">
  157. </tr>
  158. <tr style="height: 25px;">
  159. <td><strong>Elaborado por:</strong> <span t-field="o.user_id.name"/></td>
  160. </tr>
  161. </table>
  162. </div>
  163. </div>
  164. </t>
  165. </t>
  166. </t>
  167. </template>
  168. </data>
  169. </openerp>