factura_venta_verdufres.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_verdufres"
  5. model="account.invoice"
  6. string="Factura Legal"
  7. report_type="qweb-html"
  8. name="factura_venta_verdufres.report_factura_verdufres"
  9. file="factura_venta_verdufres.report_factura_verdufres"
  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_verdufres">
  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.67mm;
  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.6cm;
  41. width: 100%;
  42. top: 0px;
  43. }
  44. .fecha_emision_data{
  45. width: 13.1cm;
  46. padding-left: 8.9cm;
  47. float: left;
  48. min-height: 0.6cm;
  49. }
  50. .contado_x{
  51. width: 0.4cm;
  52. float: left;
  53. padding-left: 0.0cm;
  54. min-height: 0.6cm;
  55. }
  56. .credito_x{
  57. width: 0.2cm;
  58. float: left;
  59. padding-left: 0.5cm;
  60. min-height: 0.4cm;
  61. }
  62. .linea2{
  63. position: relative;
  64. top: -0.12cm;
  65. min-height: 0.4cm;
  66. }
  67. .razon_data{
  68. width: 15cm;
  69. float: left;
  70. padding-left: 9.9cm;
  71. min-height: 0.5cm;
  72. }
  73. .linea3{
  74. position: relative;
  75. top: -0.12cm;
  76. min-height: 0.4cm;
  77. }
  78. .direccion_data{
  79. width: 13.5cm;
  80. float: left;
  81. padding-left: 9.7cm;
  82. min-height: 0.5cm;
  83. }
  84. .linea4{
  85. position: relative;
  86. top: -0.12cm;
  87. min-height: 0.4cm;
  88. }
  89. .ruc_data{
  90. width: 11.9cm;
  91. float: left;
  92. padding-left: 9.1cm;
  93. min-height: 0.4cm;
  94. }
  95. .telefono_data{
  96. width: 6.8cm;
  97. float: left;
  98. padding-left: 2.3cm;
  99. min-height: 0.5cm;
  100. }
  101. .linea5{
  102. position: relative;
  103. top: -0.12cm;
  104. min-height: 0.4cm;
  105. }
  106. .nota_remision_data{
  107. width: 8.3cm;
  108. float: left;
  109. padding-left: 2.5cm;
  110. min-height: 0.5cm;
  111. }
  112. .cab-articulos{
  113. height: 0.7cm;
  114. clear: both;
  115. }
  116. .articulos{
  117. height: 3.65cm;
  118. }
  119. .art-col1{
  120. width:0.9cm;
  121. text-align: center;
  122. }
  123. .art-col2{
  124. padding-left: 0.8cm;
  125. width:1cm;
  126. text-align: center;
  127. }
  128. .art-col3{
  129. padding-left: 1cm;
  130. width:9.4cm;
  131. }
  132. .art-col4{
  133. width:1.9cm;
  134. text-align: right;
  135. }
  136. .art-col5{
  137. width:2.2cm;
  138. text-align: right;
  139. }
  140. .art-col6{
  141. width:2.3cm;
  142. text-align: right;
  143. }
  144. .art-col7{
  145. width:1.9cm;
  146. text-align: right;
  147. }
  148. .logo1{
  149. height: 3.48cm;
  150. width: 100%;
  151. top: 0px;
  152. }
  153. .logo2{
  154. height: 3.46cm;
  155. width: 100%;
  156. top: 0px;
  157. }
  158. .subtotal_data{
  159. width: 6cm;
  160. float: left;
  161. padding-top: 0.002cm;
  162. padding-left: 2.3cm;
  163. min-height: 0.2cm;
  164. }
  165. .subtotal_excentas{
  166. width: 1.8cm;
  167. float: left;
  168. text-align: right;
  169. padding-left: 10cm;
  170. padding-top: 0.7cm;
  171. min-height: 0.2cm;
  172. }
  173. .subtotal_5{
  174. width: 1cm;
  175. float: left;
  176. padding-left: 1cm;
  177. text-align: right;
  178. padding-top: 0.7cm;
  179. min-height: 0.2cm;
  180. }
  181. .subtotal_10{
  182. width: 2.3cm;
  183. float: left;
  184. padding-left: 0.8cm;
  185. text-align: left;
  186. padding-top: 0.7cm;
  187. min-height: 0.2cm;
  188. }
  189. .total_pagar_data{
  190. width: 16.4cm;
  191. float: left;
  192. padding-top: 0.01mm;
  193. padding-left: 4.8cm;
  194. min-height: 0.3cm;
  195. }
  196. .total_pagar{
  197. width: 2.3cm;
  198. float: right;
  199. padding-top: 0.01mm;
  200. padding-left: 0.8cm;
  201. min-height: 0.3cm;
  202. }
  203. .iva_5_data{
  204. width: 5cm;
  205. float: left;
  206. padding-left: 4.7cm;
  207. min-height: 0.25cm;
  208. }
  209. .iva_10_data{
  210. width: 5.2cm;
  211. float: left;
  212. padding-left: 3.8cm;
  213. min-height: 0.25cm;
  214. }
  215. .iva_total_data{
  216. width: 7cm;
  217. float: left;
  218. padding-left: 3.3cm;
  219. min-height: 0.25cm;
  220. }
  221. </style>
  222. <t t-foreach="docs" t-as="o">
  223. <div class="pagina">
  224. <div class="logo"> </div>
  225. <div class="linea1">
  226. <div class="fecha_emision_data"><span t-field="o.date_invoice" t-field-options='{"format": "dd MMM yyyy"}'/></div>
  227. <div class="contado_x">
  228. <t t-if="o.contado == True">X</t>
  229. <t t-if="o.contado == False"></t>
  230. </div>
  231. <div class="credito_x">
  232. <t t-if="o.credito == True">X</t>
  233. <t t-if="o.credito == False"></t>
  234. </div>
  235. </div>
  236. <div class="linea2">
  237. <div class="razon_data"><span t-field="o.partner_id.name"/></div>
  238. </div>
  239. <div class="linea3">
  240. <div class="direccion_data">
  241. <t t-f="o.partner_id.street"><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  242. <t t-f="not o.partner_id.street"> </t>
  243. </div>
  244. </div>
  245. <div class="linea4">
  246. <div class="ruc_data"><span t-field="o.partner_id.ruc"/></div>
  247. <div class="telefono_data"><span t-field="o.partner_id.phone"/></div>
  248. </div>
  249. <div class="linea5">
  250. <div class="nota_remision_data"> </div>
  251. </div>
  252. <div class="cab-articulos"> </div>
  253. <div class="articulos">
  254. <table class="tab-articulos">
  255. <tr t-foreach="o.invoice_line" t-as="l">
  256. <td class="art-col1"><span t-field="l.product_id.default_code"/></td>
  257. <td class="art-col2"><span t-esc="'{0:,.2f}'.format(l.quantity)"/></td>
  258. <td class="art-col3"><span t-field="l.product_id.name"/></td>
  259. <td class="art-col4"></td>
  260. <td class="art-col5"> </td>
  261. <td class="art-col6"> </td>
  262. <td class="art-col7"><span t-esc="'{0:,.0f}'.format((l.quantity * l.price_unit))"/></td>
  263. </tr>
  264. </table>
  265. <table class="tab-articulos1">
  266. <td class="art-col1"></td>
  267. <td class="art-col2"></td>
  268. <td class="art-col3"><t t-if="o.amount_discount != 0"> Descuento: </t></td>
  269. <td class="art-col4"></td>
  270. <td class="art-col5"> </td>
  271. <td class="art-col6"> </td>
  272. <td class="art-col7">-<span t-esc="'{0:,.0f}'.format(o.amount_discount)"/></td>
  273. <!-- <tr>
  274. <t t-if="o.amount_discount != 0">Descuento: <span t-esc="'{0:,.0f}'.format(o.amount_discount)"/></t>
  275. </tr> -->
  276. </table>
  277. </div>
  278. <div class="subtotal_data"> </div>
  279. <div class="subtotal_excentas"> </div>
  280. <div class="subtotal_5"> </div>
  281. <td style="font-size:7.0px;">
  282. <div class="subtotal_10"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  283. </td>
  284. <div class="total_pagar_data">Gs.: <span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/></div>
  285. <div class="total_pagar"><span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div>
  286. <div class="iva_5_data"> </div>
  287. <div class="iva_10_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  288. <div class="iva_total_data"><span t-esc="'{0:,.0f}'.format(o.amount_tax)"/></div>
  289. </div>
  290. <t t-if="i == 1">
  291. <div class="logo1"> </div>
  292. </t>
  293. <t t-if="i == 2">
  294. <div class="logo2"> </div>
  295. </t>
  296. </t>
  297. </div>
  298. </t>
  299. </t>
  300. </t>
  301. </template>
  302. </data>
  303. </openerp>