factura_venta_imperio.xml 13 KB

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