factura_venta_suceso2.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_suceso"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_suceso.report_factura_suceso"
  9. file="factura_venta_suceso.report_factura_suceso"
  10. />
  11. <template id="report_factura_suceso">
  12. <!-- <t t-call="report.external_layout"> -->
  13. <t t-foreach="[1,2,3]" t-as="i">
  14. <div class="page">
  15. <style>
  16. .logo{
  17. height: 1.26cm;
  18. width: 100%;
  19. top: 0px;
  20. }
  21. .borderless td, .borderless th {
  22. border: none !important;
  23. }
  24. .table-super-condensed>tbody>tr>td {
  25. padding: 1px !important;
  26. }
  27. .logo1{
  28. height: 1.9cm;
  29. width: 100%;
  30. top: 0px;
  31. }
  32. </style>
  33. <t t-foreach="docs" t-as="o">
  34. <div class="pagina">
  35. <div class="logo"> </div>
  36. <!--
  37. ======================================================================
  38. CABECERA
  39. ======================================================================
  40. -->
  41. <div style="height:1.75cm;">
  42. <div style="padding-top:0.4cm;padding-right:5.0cm;font-size:11px;font-family: Arial;">
  43. <div>
  44. <b>Fecha de Emisión: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/>
  45. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  46. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  47. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  48. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  49. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  50. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  51. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  52. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  53. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  54. <b>Condición de Venta: </b><t t-if="o.contado">Contado</t><t t-if="o.credito">Crédito</t>
  55. </div>
  56. <div>
  57. <b>Nombre o Razón Social: </b><span t-field="o.partner_id.name"/>
  58. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  59. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  60. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  61. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  62. <b>R.U.C y/o C.I.N°: </b><span t-field="o.partner_id.ruc"/>
  63. </div>
  64. <div>
  65. <b>Dirección: </b><span t-field="o.partner_id.street"/>
  66. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  67. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  68. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  69. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  70. <b>Teléfono: </b><span t-field="o.partner_id.mobile"/>
  71. </div>
  72. <div>
  73. <b>Nota de Remisión N°:</b>
  74. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  75. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  76. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  77. <b>Fecha:</b>
  78. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  79. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  80. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
  81. <b>Condición de Pago:</b>
  82. </div>
  83. </div>
  84. </div>
  85. <!--
  86. ======================================================================
  87. TABLA
  88. ======================================================================
  89. -->
  90. <div style="height:3.8cm;">
  91. <div style="font-family: Arial;">
  92. <table class="table borderless table-condensed">
  93. <thead>
  94. <tr>
  95. <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;"><b>Cant.</b></td>
  96. <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto; text-align: left;"><b>Descripción</b></td>
  97. <td style="font-size:11px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;"><b>P. Unitario</b></td>
  98. <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"><b>Exentas</b></td>
  99. <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;"><b>IVA 5%</b></td>
  100. <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;"><b>IVA 10%</b></td>
  101. </tr>
  102. </thead>
  103. <t t-set="valor_exentas" t-value="0"/>
  104. <t t-set="valor_impmu" t-value="0"/>
  105. <t t-set="valor_5" t-value="0"/>
  106. <t t-set="valor_10" t-value="0"/>
  107. <tbody>
  108. <tr t-foreach="o.invoice_line" t-as="l">
  109. <!-- CANTIDAD -->
  110. <td style="font-size:11px;font-family: Arial;width:1.2cm;overflow: auto; text-align: center;">
  111. <span t-esc="'%.0f'%l.quantity"/>
  112. </td>
  113. <!-- NOMBRE DEL PRODUCTO -->
  114. <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
  115. <span t-field="l.name"/>
  116. </td>
  117. <!-- PRECIO UNITARIO -->
  118. <td style="font-size:11px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  119. <t t-if="o.currency_id.id == 166">
  120. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  121. </t>
  122. <t t-if="o.currency_id.id != 166">
  123. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  124. </t>
  125. </td>
  126. <!-- EXENTAS -->
  127. <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
  128. <span t-if="'IVA 5% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
  129. <t t-if="o.currency_id.id == 166">
  130. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  131. </t>
  132. <t t-if="o.currency_id.id != 166">
  133. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  134. </t>
  135. <t t-set="valor_exentas" t-value="valor_exentas+(l.quantity * l.price_unit)"/>
  136. </span>
  137. <span t-if="'Impuesto Municipal' in [ilt.name for ilt in l.invoice_line_tax_id]">
  138. <t t-if="o.currency_id.id == 166">
  139. </t>
  140. <t t-if="o.currency_id.id != 166">
  141. </t>
  142. <t t-set="valor_impmu" t-value="valor_impmu+(l.quantity * l.price_unit)"/>
  143. </span>
  144. </td>
  145. <!-- IMPUESTO MUNICIPAL -->
  146. <!-- <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;"> -->
  147. <!-- </td> -->
  148. <!-- IVA 5% -->
  149. <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
  150. <span t-if="'IVA 5% Venta' in [ilt.name for ilt in l.invoice_line_tax_id] and 'IVA 10% Venta' not in [ilt.name for ilt in l.invoice_line_tax_id]">
  151. <t t-if="o.currency_id.id == 166">
  152. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  153. </t>
  154. <t t-if="o.currency_id.id != 166">
  155. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  156. </t>
  157. <t t-set="valor_5" t-value="valor_5+(l.quantity * l.price_unit)"/>
  158. </span>
  159. </td>
  160. <!-- IVA 10% -->
  161. <td style="font-size:11px;font-family: Arial;width:2.5cm;overflow: auto; text-align: right;">
  162. <span t-if="'IVA 10% Venta' in [ilt.name for ilt in l.invoice_line_tax_id]">
  163. <t t-if="o.currency_id.id == 166">
  164. <span t-esc="'{0:,.0f}'.format(l.quantity * l.price_unit)"/>
  165. </t>
  166. <t t-if="o.currency_id.id != 166">
  167. <span t-esc="'{0:,.2f}'.format(l.quantity * l.price_unit)"/>
  168. </t>
  169. <t t-set="valor_10" t-value="valor_10+(l.quantity * l.price_unit)"/>
  170. </span>
  171. </td>
  172. </tr>
  173. </tbody>
  174. </table>
  175. </div>
  176. </div>
  177. <!--
  178. ======================================================================
  179. TABLA
  180. ======================================================================
  181. -->
  182. <div style="height:0.5cm;padding-right:0.6cm;">
  183. <div style="font-family: Arial;">
  184. <table class="table borderless table-super-condensed">
  185. <tbody>
  186. <t t-set="iva_impuesto" t-value="0"/>
  187. <!-- LINEA DE SUBTOTALES -->
  188. <tr>
  189. <!-- CANTIDAD -->
  190. <td style="font-size:11px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">
  191. </td>
  192. <!-- NOMBRE DEL PRODUCTO -->
  193. <td style="font-size:11px;font-family: Arial;width:9.5cm;overflow: auto;">
  194. Impuesto Municipal 0,5%
  195. </td>
  196. <td style="font-size:11px;font-family: Arial;width:9.7cm;overflow: auto; text-align: center;"></td>
  197. <td style="font-size:11px;font-family: Arial;width:1.7cm;overflow: auto; text-align: right;">
  198. <t t-set="iva_impuesto" t-value="valor_impmu*0.005" />
  199. <t t-if="iva_impuesto != 0">
  200. <span t-esc="'{0:,.0f}'.format(iva_impuesto)"/>
  201. </t>
  202. </td>
  203. <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
  204. </td>
  205. <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
  206. </td>
  207. <td style="font-size:11px;font-family: Arial;width:2.3cm;overflow: auto; text-align: right;">
  208. </td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. </div>
  213. </div>
  214. <!--
  215. ======================================================================
  216. TABLA
  217. ======================================================================
  218. -->
  219. <div style="height:1.9cm;padding-right:0.6cm;">
  220. <div style="font-family: Arial;">
  221. <t t-set="total_5" t-value="0"/>
  222. <t t-set="total_10" t-value="0"/>
  223. <t t-set="iva_5" t-value="0"/>
  224. <t t-set="iva_10" t-value="0"/>
  225. <table class="table borderless table-super-condensed">
  226. <tbody>
  227. <tr>
  228. <td style="font-size:11px;font-family: Arial;width:1.0cm;overflow: auto; text-align: left;">
  229. <b>SUBTOTALES:</b>
  230. </td>
  231. <td style="width:1.3cm;overflow: auto; text-align: center;"></td>
  232. <td style="width:9.5cm;overflow: auto; text-align: center;"></td>
  233. <td style="width:1.7cm;overflow: auto; text-align: center;"></td>
  234. <td style="font-size:11px;font-family: Arial;width:2.2cm;overflow: auto; text-align: right;">
  235. <t t-if="o.currency_id.id == 166">
  236. <span t-esc="'{0:,.0f}'.format(valor_exentas+iva_impuesto)"/>
  237. </t>
  238. <t t-if="o.currency_id.id != 166">
  239. <span t-esc="'{0:,.2f}'.format(valor_exentas+valor_impmu)"/>
  240. </t>
  241. </td>
  242. <td style="font-size:11px;font-family: Arial;width:1.9cm;overflow: auto; text-align: right;">
  243. <t t-if="o.currency_id.id == 166">
  244. <span t-esc="'{0:,.0f}'.format(valor_5)"/>
  245. </t>
  246. <t t-if="o.currency_id.id != 166">
  247. <span t-esc="'{0:,.2f}'.format(valor_5)"/>
  248. </t>
  249. <t t-set="iva_5" t-value="valor_5/21" />
  250. </td>
  251. <td style="font-size:11px;font-family: Arial;width:2.7cm;overflow: auto; text-align: right;">
  252. <t t-if="o.currency_id.id == 166">
  253. <span t-esc="'{0:,.0f}'.format(valor_10)"/>
  254. </t>
  255. <t t-if="o.currency_id.id != 166">
  256. <span t-esc="'{0:,.2f}'.format(valor_10)"/>
  257. </t>
  258. <t t-set="iva_10" t-value="valor_10/11" />
  259. </td>
  260. </tr>
  261. </tbody>
  262. </table>
  263. <table class="table borderless table-super-condensed">
  264. <tbody>
  265. <tr>
  266. <td style="font-size:11px;font-family: Arial;overflow: auto; width:30.5cm;text-align: left;">
  267. <b>TOTAL A PAGAR: (en letra) </b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/>
  268. </td>
  269. <td style="font-size:11px;font-family: Arial;overflow: auto; width:7cm;text-align: right;">
  270. <t t-if="o.currency_id.id == 166">
  271. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  272. </t>
  273. <t t-if="o.currency_id.id != 166">
  274. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  275. </t>
  276. </td>
  277. </tr>
  278. </tbody>
  279. </table>
  280. <table class="table borderless table-super-condensed">
  281. <tbody>
  282. <tr>
  283. <td style="font-size:11px;font-family: Arial;overflow: auto; text-align: left;">
  284. <t t-if="o.currency_id.id == 166">
  285. <div>
  286. <td style="font-size:11px;font-family: Arial;width:15cm;overflow: auto; text-align: left;">
  287. <b>LIQUIDACIÓN DEL IVA (5%): </b>
  288. <t t-if="iva_5 != 0">
  289. <span t-esc="'{0:,.0f}'.format(iva_5)"/>
  290. </t>
  291. </td>
  292. <td style="font-size:11px;font-family: Arial;width:5cm;overflow: auto; text-align: center;">
  293. <b>IVA 10%: </b>
  294. <t t-if="iva_10 != 0">
  295. <span t-esc="'{0:,.0f}'.format(iva_10)"/>
  296. </t>
  297. </td>
  298. <td style="font-size:11px;font-family: Arial;width:7cm;overflow: auto; text-align: center;">
  299. <b> TOTAL IVA: </b>
  300. <t>
  301. <span t-esc="'{0:,.0f}'.format(iva_5+iva_10)"/>
  302. </t>
  303. </td>
  304. </div>
  305. </t>
  306. <t t-if="o.currency_id.id != 166">
  307. <td style="font-size:11px;font-family: Arial;width:15cm;overflow: auto; text-align: left;">
  308. <b>LIQUIDACIÓN DEL IVA (5%): </b>
  309. <t t-if="iva_5 != 0">
  310. <span t-esc="'{0:,.2f}'.format(iva_5)"/>
  311. </t>
  312. </td>
  313. <td style="font-size:11px;font-family: Arial;width:5cm;overflow: auto; text-align: center;">
  314. <b>IVA 10%: </b>
  315. <t t-if="iva_10 != 0">
  316. <span t-esc="'{0:,.2f}'.format(iva_10)"/>
  317. </t>
  318. </td>
  319. <td style="font-size:11px;font-family: Arial;width:7cm;overflow: auto; text-align: center;">
  320. <b> TOTAL IVA: </b>
  321. <t>
  322. <span t-esc="'{0:,.2f}'.format(iva_5+iva_10)"/>
  323. </t>
  324. </td>
  325. </t>
  326. </td>
  327. </tr>
  328. </tbody>
  329. </table>
  330. </div>
  331. </div>
  332. </div>
  333. </t>
  334. </div>
  335. <div class="logo1"> </div>
  336. </t>
  337. </template>
  338. </data>
  339. </openerp>