orden_cobro_report.xml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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="padding-left: 0.01mm; padding-top: 0.01mm; padding-bottom: 0.15mm; border-top: 2px solid #ddd; border-bottom: 2px solid #ddd; border-left: 2px solid #ddd; border-right: 2px solid #ddd;">
  35. <h3><center><strong><i><span t-field="o.company_id.name" /></i></strong></center></h3>
  36. <t><center><b>de </b><i><span t-field="o.company_id.representante_legal"/></i></center></t>
  37. <t><center><b><span t-field="o.company_id.actividad" /></b></center></t>
  38. <t><center><b><span t-field="o.company_id.street" /></b></center></t>
  39. <t><center><b><span t-field="o.company_id.street2" /></b></center></t>
  40. <t><center><b><span t-field="o.company_id.phone" /></b></center></t>
  41. </div>
  42. <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;">
  43. <t>
  44. <div>
  45. <h5><center><strong>Formulario Nº 022</strong></center></h5>
  46. </div>
  47. </t>
  48. <t>
  49. <div>
  50. <h3><center><strong>RECIBO DE DINERO</strong></center></h3>
  51. </div>
  52. </t>
  53. <t>
  54. <div>
  55. <h4><center><strong>REC </strong><strong><span t-field="o.name" /></strong></center></h4>
  56. </div>
  57. </t>
  58. <t>
  59. <div>
  60. <center><strong>RUC.Nº </strong><strong><span t-field="o.company_id.vat" /></strong></center>
  61. </div>
  62. </t>
  63. </div>
  64. </div>
  65. <hr style="border: 1px solid #ddd; margin-top: 10px; margin-bottom: 15px;"/>
  66. <div style="margin-bottom: 15px; font-size: 12px;">
  67. <strong>Fecha:</strong> <span t-esc="fecha_letras"/>
  68. </div>
  69. <table style="width:100%; margin-bottom:15px;">
  70. <tr style="height: 25px;">
  71. <td><strong>Recibimos de </strong> <span t-field="o.partner_id.name"/></td>
  72. <td><strong>R.U.C:</strong> <span t-esc="o.ruc_partner"/></td>
  73. </tr>
  74. <tr style="height: 25px;">
  75. <td><strong>Teléfono:</strong> <span t-esc="o.telefono_partner or ''"/></td>
  76. <td><strong>Celular:</strong> <span t-esc="o.celular_partner or ''"/></td>
  77. </tr>
  78. </table>
  79. <table style="width:100%; margin-bottom:15px;border: 1px solid #ddd; margin-top: 10px;">
  80. <tr style="height: 25px;">
  81. <td><strong>La cantidad de </strong> <span t-esc="convertir(o.total, o.currency_id.en_letras1)"/></td>
  82. </tr>
  83. </table>
  84. <table style="width:100%; margin-bottom:15px;border: 1px solid #ddd; margin-top: 10px;">
  85. <tr style="height: 25px;">
  86. <td><strong>Por concepto de </strong> <span t-esc="o.concepto or ''"/></td>
  87. </tr>
  88. </table>
  89. <!-- Detalle de Facturas -->
  90. <div class="row" style="display: flex;">
  91. <div class="col-xs-3" style="border: 1px solid #ddd; padding: 10px;">
  92. <h4>Facturas</h4>
  93. <table style="width: 100%; border-collapse: collapse; margin-bottom: 20px; border: 1px solid #ddd;font-size: 9px;">
  94. <thead>
  95. <tr>
  96. <th style="border: 1px solid #ddd; padding: 7px;">Nº de Factura</th>
  97. <th style="border: 1px solid #ddd; padding: 7px;">Monto</th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. <tr t-foreach="o.invoice_line_ids" t-as="line">
  102. <td style="border: 1px solid #ddd; padding: 7px;"><span t-esc="line.invoice_number"/></td>
  103. <td style="border: 1px solid #ddd; padding: 7px; text-align: right;"><span t-esc="'{0:,.0f}'.format(line.monto_cobrado)"/></td>
  104. </tr>
  105. </tbody>
  106. </table>
  107. <table style="width:100%; border: 1px solid #ddd; margin-bottom:15px;">
  108. <tr style="height: 30px;">
  109. <td style="width:40%; border-right:1px solid #ddd;">
  110. <strong>Importe Gs.:</strong>
  111. </td>
  112. <td style="width:60%; padding-left:10px;">
  113. <span t-esc="'{0:,.0f}'.format(o.total)"/>
  114. </td>
  115. </tr>
  116. </table>
  117. </div>
  118. <div class="col-xs-9" style="border: 1px solid #ddd; padding: 10px;">
  119. <strong>Forma de cobro:</strong>
  120. <div style="margin-top: 5px;">
  121. <span style="margin-right: 40px; display: inline-block;">
  122. <t t-if="o.is_efec">[x] Efectivo</t>
  123. <t t-if="not o.is_efec">[ ] Efectivo</t>
  124. </span>
  125. <span style="margin-right: 40px; display: inline-block;">
  126. <t t-if="o.is_cheq">[x] Cheque</t>
  127. <t t-if="not o.is_cheq">[ ] Cheque</t>
  128. </span>
  129. <span style="display: inline-block;">
  130. <t t-if="o.is_transf">[x] Transferencia</t>
  131. <t t-if="not o.is_transf">[ ] Transferencia</t>
  132. </span>
  133. </div>
  134. <table style="width:100%; margin-top: 10px; border-collapse: collapse; border: 1px solid #ddd;">
  135. <tr style="height: 25px;">
  136. <td style="border: 1px solid #ddd;"><strong>Banco Cheque:</strong> <span t-esc="o.cheque_banco or ''"/></td>
  137. <td style="border: 1px solid #ddd;"><strong>Cheque Nº:</strong> <span t-esc="o.cheque_nro or ''"/></td>
  138. </tr>
  139. <tr style="height: 25px;">
  140. <td style="border: 1px solid #ddd;"><strong>Cuenta Bancaria:</strong> <span t-esc="o.transf_banco or ''"/></td>
  141. <td style="border: 1px solid #ddd;"><strong>Transferencia Nº:</strong> <span t-esc="o.transf_nro or ''"/></td>
  142. </tr>
  143. <tr style="height: 25px;">
  144. <td style="border: 1px solid #ddd;"><strong>Presupuesto Nº:</strong> <span t-esc="o.presupuesto_nro or ''"/></td>
  145. <td style="border: 1px solid #ddd;"><strong>Obra:</strong> <span t-esc="o.obra or ''"/></td>
  146. </tr>
  147. </table>
  148. </div>
  149. </div>
  150. <table style="width:100%; margin-top: 10px; font-size: 11px;">
  151. <tr style="height: 25px;">
  152. <td><strong>Obs.:</strong> <span t-esc="o.obs or ''"/></td>
  153. </tr>
  154. </table>
  155. <table style="width:100%; margin-top: 10px; font-size: 11px;">
  156. <tr style="height: 25px;">
  157. <td><strong>Recibido por:</strong> <span t-esc="o.solicitado_por or ''"/></td>
  158. </tr>
  159. <tr style="height: 5px;">
  160. </tr>
  161. <tr style="height: 25px;">
  162. <td><strong>Elaborado por:</strong> <span t-field="o.user_id.name"/></td>
  163. </tr>
  164. </table>
  165. </div>
  166. </div>
  167. </t>
  168. </t>
  169. </t>
  170. </template>
  171. </data>
  172. </openerp>