factura_venta_anillos.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_anillos"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_anillos.report_factura_anillos"
  9. file="factura_venta_anillos.report_factura_anillos"
  10. />
  11. <template id="report_header_custom" inherit_id="report.external_layout_header">
  12. <xpath expr="//div[@class='header']" position="replace">
  13. <div class ="header">
  14. </div>
  15. </xpath>
  16. </template>
  17. <template id="external_layout_footer" inherit_id="report.external_layout_footer">
  18. <xpath expr="//div[@class='footer']" position="replace">
  19. <div class ="footer">
  20. </div>
  21. </xpath>
  22. </template>
  23. <template id="report_factura_anillos">
  24. <t t-call="report.html_container">
  25. <t t-call="report.external_layout">
  26. <t t-foreach="[1,2,3]" t-as="i">
  27. <div class="page">
  28. <style type="text/css">
  29. body{
  30. font-size: 2.7mm;
  31. font-family: Arial, Helvetica, sans-serif;
  32. }
  33. div{
  34. padding: 0px;
  35. }
  36. .pagina{
  37. width:19.3cm;
  38. }
  39. .logo{
  40. height: 0.1cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .fecha_emision_data{
  45. width: 11.5cm;
  46. padding-left: 6.55cm;
  47. float: left;
  48. min-height: 0.55cm;
  49. }
  50. .contado_x{
  51. width: 1.8cm;
  52. float: right;
  53. padding-left: 14cm;
  54. min-height: 0.55cm;
  55. }
  56. .linea2{
  57. position: relative;
  58. top: -0.12cm;
  59. min-height: 0.5cm;
  60. }
  61. .razon_data{
  62. width: 15cm;
  63. float: left;
  64. padding-left: 7.0cm;
  65. min-height: 0.4cm;
  66. }
  67. .ruc_data{
  68. width: 5.5cm;
  69. float: left;
  70. padding-left: 0.3cm;
  71. min-height: 0.4cm;
  72. }
  73. .linea3{
  74. position: relative;
  75. top: -0.12cm;
  76. min-height: 0.3cm;
  77. }
  78. .direccion_data{
  79. width: 14cm;
  80. float: left;
  81. padding-left: 7.6cm;
  82. min-height: 0.5cm;
  83. }
  84. .linea4{
  85. position: relative;
  86. top: -0.12cm;
  87. min-height: 0.3cm;
  88. }
  89. .telefono_data{
  90. width: 10cm;
  91. float: left;
  92. padding-left: 6.9cm;
  93. min-height: 0.4cm;
  94. }
  95. .linea5{
  96. position: relative;
  97. top: -0.12cm;
  98. min-height: 0.4cm;
  99. }
  100. .contado_x{
  101. width: 13cm;
  102. float: left;
  103. padding-left: 7.6cm;
  104. min-height: 0.4cm;
  105. }
  106. .cab-articulos{
  107. height: 0.75cm;
  108. clear: both;
  109. }
  110. .articulos{
  111. height: 5.04cm;
  112. }
  113. .art-col1{
  114. width:0.9cm;
  115. text-align: center;
  116. }
  117. .art-col2{
  118. padding-left: 0.93cm;
  119. width:1cm;
  120. text-align: center;
  121. }
  122. .art-col3{
  123. padding-left: 0.3cm;
  124. width:9.2cm;
  125. }
  126. .art-col4{
  127. width:1.5cm;
  128. text-align: right;
  129. }
  130. .art-col5{
  131. width:2.2cm;
  132. text-align: right;
  133. }
  134. .art-col6{
  135. width:2.3cm;
  136. text-align: right;
  137. }
  138. .art-col7{
  139. width:3.0cm;
  140. text-align: right;
  141. }
  142. .logo1{
  143. height: 1.88cm;
  144. width: 100%;
  145. top: 0px;
  146. }
  147. .logo3{
  148. height: 0.2cm;
  149. width: 100%;
  150. top: 0px;
  151. }
  152. .subtotal_excentas{
  153. width: 1cm;
  154. float: left;
  155. text-align: right;
  156. padding-left: 0.3cm;
  157. padding-top: 0.5cm;
  158. min-height: 0.2cm;
  159. }
  160. .subtotal_5{
  161. width: 0.7cm;
  162. float: left;
  163. padding-left: 0.3cm;
  164. text-align: right;
  165. padding-top: 0.5cm;
  166. min-height: 0.2cm;
  167. }
  168. .subtotal_10{
  169. width: 2.5cm;
  170. float: right;
  171. padding-left: 1.1cm;
  172. text-align: right;
  173. padding-top: 0.5cm;
  174. min-height: 0.2cm;
  175. }
  176. .total_pagar_data{
  177. width: 11.5cm;
  178. float: left;
  179. padding-top: 1.5cm;
  180. padding-left: 2cm;
  181. min-height: 0.2cm;
  182. }
  183. .total_pagar{
  184. width: 6.2cm;
  185. float: left;
  186. padding-top: 0.4cm;
  187. padding-left: 0.9cm;
  188. min-height: 0.25cm;
  189. }
  190. .iva_5_data{
  191. width:10cm;
  192. float: right;
  193. padding-top: 0.5cm;
  194. padding-left: 4.8cm;
  195. min-height: 0.25cm;
  196. }
  197. .iva_10_data{
  198. width: 4.8cm;
  199. float: right;
  200. padding-top: 0.5cm;
  201. padding-left: 1.8cm;
  202. min-height: 0.25cm;
  203. }
  204. .iva_total_data{
  205. width: 4.2cm;
  206. float: right;
  207. padding-top: 0.5cm;
  208. padding-left: 2.9cm;
  209. min-height: 0.25cm;
  210. }
  211. </style>
  212. <t t-foreach="docs" t-as="o">
  213. <div class="pagina">
  214. <div class="logo"> </div>
  215. <div class="linea1">
  216. <div class="fecha_emision_data">Ciudad del Este,<span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  217. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  218. </div>
  219. <div class="linea2">
  220. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  221. </div>
  222. <div class="linea3">
  223. <div class="direccion_data">
  224. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  225. <t t-f="not o.partner_id.street"> </t>
  226. </div>
  227. </div>
  228. <div class="linea4">
  229. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  230. </div>
  231. <div class="linea5">
  232. <div class="contado_x">
  233. <t t-if="o.contado"> </t><t t-if="o.credito"> </t>
  234. </div>
  235. </div>
  236. <div class="cab-articulos"> </div>
  237. <div class="articulos">
  238. <table class="tab-articulos">
  239. <tr t-foreach="o.invoice_line" t-as="l">
  240. <td class="art-col1"><span t-esc="'{0:,.0f}'.format(l.quantity)"/></td>
  241. <td class="art-col2"></td>
  242. <td class="art-col3"><span t-field="l.name"/></td>
  243. <td class="art-col4"><span t-esc="'{0:,.0f}'.format(l.price_unit)"/></td>
  244. <td class="art-col5"> </td>
  245. <td class="art-col6"> </td>
  246. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/></td>
  247. </tr>
  248. </table>
  249. </div>
  250. <table class="tab-articulos">
  251. <td class="art-col1"> </td>
  252. <td class="art-col2"> </td>
  253. <td class="art-col3"> </td>
  254. <td class="art-col4"> </td>
  255. <td class="art-col5"> </td>
  256. <td class="art-col6"> </td>
  257. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
  258. </table>
  259. <div class="logo3"> </div>
  260. <table class="tab-articulos">
  261. <td class="art-col1"> </td>
  262. <td class="art-col2"> </td>
  263. <td class="art-col3"><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></td>
  264. <td class="art-col4"> </td>
  265. <td class="art-col5"> </td>
  266. <td class="art-col6"> </td>
  267. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></td>
  268. </table>
  269. <div class="logo3"> </div>
  270. <table class="tab-articulos">
  271. <td class="art-col1"> </td>
  272. <td class="art-col2"> </td>
  273. <td class="art-col3"> </td>
  274. <td class="art-col4"> </td>
  275. <td class="art-col5"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></td>
  276. <td class="art-col6"> </td>
  277. <td class="art-col7"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></td>
  278. </table>
  279. </div>
  280. <div class="logo1"> </div>
  281. </t>
  282. </div>
  283. </t>
  284. </t>
  285. </t>
  286. </template>
  287. </data>
  288. </openerp>